Fixes for -Wnonnull-compare

This commit is contained in:
RincewindsHat 2023-03-12 14:59:23 +01:00
parent 41fb615f3d
commit a00c412e7b
2 changed files with 0 additions and 8 deletions

View file

@ -118,10 +118,6 @@ _cmd_open (char *const *argv, int *pfd, int *pfderr)
int i = 0;
/* if no command was passed, return with no error */
if (argv == NULL)
return -1;
if (!_cmd_pids)
CMD_INIT;

View file

@ -114,10 +114,6 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr)
env[0] = strdup("LC_ALL=C");
env[1] = '\0';
/* if no command was passed, return with no error */
if (cmdstring == NULL)
return -1;
/* make copy of command string so strtok() doesn't silently modify it */
/* (the calling program may want to access it later) */
cmdlen = strlen(cmdstring);