Change iritating NULL assignment

This commit is contained in:
RincewindsHat 2023-12-29 00:45:14 +01:00
parent bad1566768
commit c1c9abbfca
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ spopen (const char *cmdstring)
#endif
env[0] = strdup("LC_ALL=C");
env[1] = '\0';
env[1] = NULL;
/* if no command was passed, return with no error */
if (cmdstring == NULL)

View file

@ -115,7 +115,7 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr)
if(!np_pids) NP_RUNCMD_INIT;
env[0] = strdup("LC_ALL=C");
env[1] = '\0';
env[1] = NULL;
/* make copy of command string so strtok() doesn't silently modify it */
/* (the calling program may want to access it later) */