Skip to content

Commit

Permalink
Update DsrcMessageManagerPlugin.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
arayama authored Dec 22, 2021
1 parent c38f9ea commit 558408f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 558408f

Please sign in to comment.