mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
Fixes for -Wnonnull-compare
This commit is contained in:
parent
41fb615f3d
commit
a00c412e7b
2 changed files with 0 additions and 8 deletions
|
|
@ -118,10 +118,6 @@ _cmd_open (char *const *argv, int *pfd, int *pfderr)
|
|||
|
||||
int i = 0;
|
||||
|
||||
/* if no command was passed, return with no error */
|
||||
if (argv == NULL)
|
||||
return -1;
|
||||
|
||||
if (!_cmd_pids)
|
||||
CMD_INIT;
|
||||
|
||||
|
|
|
|||
|
|
@ -114,10 +114,6 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr)
|
|||
env[0] = strdup("LC_ALL=C");
|
||||
env[1] = '\0';
|
||||
|
||||
/* if no command was passed, return with no error */
|
||||
if (cmdstring == NULL)
|
||||
return -1;
|
||||
|
||||
/* make copy of command string so strtok() doesn't silently modify it */
|
||||
/* (the calling program may want to access it later) */
|
||||
cmdlen = strlen(cmdstring);
|
||||
|
|
|
|||
Loading…
Reference in a new issue