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) {