From 558408f23942e04a468df3b25252b99540f57167 Mon Sep 17 00:00:00 2001 From: Anjan Rayamajhi <18730915+arayama@users.noreply.github.com> Date: Wed, 22 Dec 2021 13:51:16 -0500 Subject: [PATCH] Update DsrcMessageManagerPlugin.cpp --- .../DsrcImmediateForwardPlugin/src/DsrcMessageManagerPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2i-hub/DsrcImmediateForwardPlugin/src/DsrcMessageManagerPlugin.cpp b/src/v2i-hub/DsrcImmediateForwardPlugin/src/DsrcMessageManagerPlugin.cpp index 6406445b7..2b90bc9d5 100644 --- a/src/v2i-hub/DsrcImmediateForwardPlugin/src/DsrcMessageManagerPlugin.cpp +++ b/src/v2i-hub/DsrcImmediateForwardPlugin/src/DsrcMessageManagerPlugin.cpp @@ -360,7 +360,7 @@ void DsrcMessageManagerPlugin::SendMessageToRadio(IvpMessage *msg) std::string result=""; FILE* pipe= popen(cmd,"r"); - if (pipe != NULL ) throw std::runtime_error("popen() failed!"); + if (pipe == NULL ) throw std::runtime_error("popen() failed!"); try{ while (fgets(buffer, sizeof(buffer),pipe) != NULL) {