diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-19 11:06:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-19 11:06:39 +0200 |
commit | 220455a11e8f1dd3a86ac4725cf0c799c8e3b21b (patch) | |
tree | fffe9429dbf796841a1d2699d49c921f3bf369d1 /plugins/runcmd.c | |
parent | 2f0119ef1d4c009f1ed7fc10f5a6a1e0b224c3d2 (diff) | |
parent | fe239bf1c458f62499f3cdaf66d9d48957375a73 (diff) | |
download | monitoring-plugins-220455a.tar.gz |
Merge pull request #1870 from RincewindsHat/compiler_warning_part_5
Compiler warning part 5
Diffstat (limited to 'plugins/runcmd.c')
-rw-r--r-- | plugins/runcmd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/runcmd.c b/plugins/runcmd.c index c1d675d0..102191e4 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); |