Search found 1 match

by jwoods
Tue Aug 19, 2014 4:33 pm
Forum: Open Source Nagios Projects
Topic: Nagios 4.0.8: lib/runcmd.c doesn't compile
Replies: 2
Views: 2304

Nagios 4.0.8: lib/runcmd.c doesn't compile

In line 590 of lib/runcmd.c, the following statement is trying to assign -1:

Code: Select all

if (asprintf(&env_string, "%s=%s", name, value) = -1) return -1;
It really should read:

Code: Select all

if (asprintf(&env_string, "%s=%s", name, value) == -1) return -1;