1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +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(); popheap();
#ifndef USE_SET_UNSET_ENV #ifndef USE_SET_UNSET_ENV
*envp = '\0'; *envp = NULL;
#endif #endif
opts[ALLEXPORT] = oae; opts[ALLEXPORT] = oae;