mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-21 18:10:06 -04:00
Change iritating NULL assignment
This commit is contained in:
parent
bad1566768
commit
c1c9abbfca
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ spopen (const char *cmdstring)
|
|||
#endif
|
||||
|
||||
env[0] = strdup("LC_ALL=C");
|
||||
env[1] = '\0';
|
||||
env[1] = NULL;
|
||||
|
||||
/* if no command was passed, return with no error */
|
||||
if (cmdstring == NULL)
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr)
|
|||
if(!np_pids) NP_RUNCMD_INIT;
|
||||
|
||||
env[0] = strdup("LC_ALL=C");
|
||||
env[1] = '\0';
|
||||
env[1] = NULL;
|
||||
|
||||
/* make copy of command string so strtok() doesn't silently modify it */
|
||||
/* (the calling program may want to access it later) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue