summaryrefslogtreecommitdiffstats
path: root/plugins/runcmd.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-12-30 19:39:31 (GMT)
committerGitHub <noreply@github.com>2023-12-30 19:39:31 (GMT)
commit7dfddfbc88b1d78b9824a68feca19df87a3eb504 (patch)
tree6a79e50b310b3fa6f1a74797a0c6b9516046e552 /plugins/runcmd.c
parentbad156676894a2755c8b76519a11cdd2037e5cd6 (diff)
parent8fe3fc78299dbd5fc3612853a502a99fbaf35451 (diff)
downloadmonitoring-plugins-7dfddfbc88b1d78b9824a68feca19df87a3eb504.tar.gz
Merge pull request #1980 from RincewindsHat/compiler_warning_part_7
Compiler warning part 7
Diffstat (limited to 'plugins/runcmd.c')
-rw-r--r--plugins/runcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/runcmd.c b/plugins/runcmd.c
index 32fd6b9..ed49bb9 100644
--- a/plugins/runcmd.c
+++ b/plugins/runcmd.c
@@ -115,7 +115,7 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr)
115 if(!np_pids) NP_RUNCMD_INIT; 115 if(!np_pids) NP_RUNCMD_INIT;
116 116
117 env[0] = strdup("LC_ALL=C"); 117 env[0] = strdup("LC_ALL=C");
118 env[1] = '\0'; 118 env[1] = NULL;
119 119
120 /* make copy of command string so strtok() doesn't silently modify it */ 120 /* make copy of command string so strtok() doesn't silently modify it */
121 /* (the calling program may want to access it later) */ 121 /* (the calling program may want to access it later) */