mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01: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:
parent
edfdce9981
commit
d44d23c757
1 changed files with 1 additions and 1 deletions
|
|
@ -827,7 +827,7 @@ createparamtable(void)
|
|||
}
|
||||
popheap();
|
||||
#ifndef USE_SET_UNSET_ENV
|
||||
*envp = '\0';
|
||||
*envp = NULL;
|
||||
#endif
|
||||
opts[ALLEXPORT] = oae;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue