summaryrefslogtreecommitdiffstats
path: root/plugins/runcmd.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-09-21 07:22:33 (GMT)
committerGitHub <noreply@github.com>2023-09-21 07:22:33 (GMT)
commitd5d0b50e89ee600b6a605344aad004c60b88994d (patch)
tree1ef0975b2a059daa7b8552aaf6371b3320ef477b /plugins/runcmd.c
parentab493d5515bd6dd8f844eb673b783479074263f8 (diff)
parent220455a11e8f1dd3a86ac4725cf0c799c8e3b21b (diff)
downloadmonitoring-plugins-d5d0b50e89ee600b6a605344aad004c60b88994d.tar.gz
Merge branch 'master' into compiler_warning_part_3refs/pull/1868/head
Diffstat (limited to 'plugins/runcmd.c')
-rw-r--r--plugins/runcmd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/runcmd.c b/plugins/runcmd.c
index c1d675d..102191e 100644
--- a/plugins/runcmd.c
+++ b/plugins/runcmd.c
@@ -116,10 +116,6 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr)
116 env[0] = strdup("LC_ALL=C"); 116 env[0] = strdup("LC_ALL=C");
117 env[1] = '\0'; 117 env[1] = '\0';
118 118
119 /* if no command was passed, return with no error */
120 if (cmdstring == NULL)
121 return -1;
122
123 /* make copy of command string so strtok() doesn't silently modify it */ 119 /* make copy of command string so strtok() doesn't silently modify it */
124 /* (the calling program may want to access it later) */ 120 /* (the calling program may want to access it later) */
125 cmdlen = strlen(cmdstring); 121 cmdlen = strlen(cmdstring);