diff options
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); |