about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-01-09 13:38:13 +0100
committerMikael Magnusson <mikachu@gmail.com>2015-01-10 08:48:18 +0100
commit7dcaa2ff6028a2ceb1ca73c7804babef731779aa (patch)
tree6431e0af9c5ad010a7653f48ef2add9d1893c367 /Src
parentcfd91eac0732da8ece012ca4ab051d928a85c9dd (diff)
downloadzsh-7dcaa2ff6028a2ceb1ca73c7804babef731779aa.tar.gz
zsh-7dcaa2ff6028a2ceb1ca73c7804babef731779aa.tar.xz
zsh-7dcaa2ff6028a2ceb1ca73c7804babef731779aa.zip
hist: remove wrong NULL terminator
This actually writes a NULL to some arbitrary location in the caller function's stack. Found by Coverity (Issue 1255746).
Diffstat (limited to 'Src')
-rw-r--r--Src/hist.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 447f00e84..1c5d045e7 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -2263,7 +2263,6 @@ quote(char **tr)
 	    *rptr++ = *ptr;
     *rptr++ = '\'';
     *rptr++ = 0;
-    str[1] = NULL;
     return 0;
 }