1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00

unposted: change '\0' to NULL to silence spurious compile warning.

params.c:830:13: warning: expression which evaluates to zero treated as a null
      pointer constant of type 'char *' [-Wnon-literal-null-conversion]
    *envp = '\0';
This commit is contained in:
Bart Schaefer 2016-09-28 10:58:46 -07:00
parent edfdce9981
commit d44d23c757

View file

@ -827,7 +827,7 @@ createparamtable(void)
}
popheap();
#ifndef USE_SET_UNSET_ENV
*envp = '\0';
*envp = NULL;
#endif
opts[ALLEXPORT] = oae;