diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-21 09:22:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-21 09:22:33 +0200 |
| commit | d5d0b50e89ee600b6a605344aad004c60b88994d (patch) | |
| tree | 1ef0975b2a059daa7b8552aaf6371b3320ef477b /plugins/runcmd.c | |
| parent | ab493d5515bd6dd8f844eb673b783479074263f8 (diff) | |
| parent | 220455a11e8f1dd3a86ac4725cf0c799c8e3b21b (diff) | |
| download | monitoring-plugins-d5d0b50e89ee600b6a605344aad004c60b88994d.tar.gz | |
Merge branch 'master' into compiler_warning_part_3
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); |
