about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2016-09-28 10:58:46 -0700
committerBart Schaefer <schaefer@zsh.org>2016-09-28 10:58:46 -0700
commitd44d23c7578285375f4ded759f7d8412320c3319 (patch)
treecddfb0cca0ff4b8dc9d45756908a7be6d59e1218 /Src
parentedfdce9981550239675dcc2454ae50cbc8988db4 (diff)
downloadzsh-d44d23c7578285375f4ded759f7d8412320c3319.tar.gz
zsh-d44d23c7578285375f4ded759f7d8412320c3319.tar.xz
zsh-d44d23c7578285375f4ded759f7d8412320c3319.zip
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';
Diffstat (limited to 'Src')
-rw-r--r--Src/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index a85e5a51e..87586a209 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -827,7 +827,7 @@ createparamtable(void)
     }
     popheap();
 #ifndef USE_SET_UNSET_ENV
-    *envp = '\0';
+    *envp = NULL;
 #endif
     opts[ALLEXPORT] = oae;