diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-01-04 02:16:50 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-01-04 02:16:50 +0100 |
commit | 2a1c0b64bb9b8730a321ee1b50f303d3a8468825 (patch) | |
tree | 65e518381a8d6457089e6ad7eb4a7bcc131eff27 /plugins/runcmd.c | |
parent | 946d2f4b8fedfef30b8978d10823987cb6f88819 (diff) | |
parent | 7dfddfbc88b1d78b9824a68feca19df87a3eb504 (diff) | |
download | monitoring-plugins-2a1c0b64bb9b8730a321ee1b50f303d3a8468825.tar.gz |
Merge branch 'master' into check_swap_again
Diffstat (limited to 'plugins/runcmd.c')
-rw-r--r-- | plugins/runcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/runcmd.c b/plugins/runcmd.c index 32fd6b96..ed49bb99 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) */ |