diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2015-01-09 13:38:13 +0100 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2015-01-10 08:48:18 +0100 |
commit | 7dcaa2ff6028a2ceb1ca73c7804babef731779aa (patch) | |
tree | 6431e0af9c5ad010a7653f48ef2add9d1893c367 /Src/hist.c | |
parent | cfd91eac0732da8ece012ca4ab051d928a85c9dd (diff) | |
download | zsh-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/hist.c')
-rw-r--r-- | Src/hist.c | 1 |
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; } |