diff options
author | Oliver Kiddle <opk@zsh.org> | 2014-11-30 23:19:55 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2014-11-30 23:19:55 +0100 |
commit | 0d4b548d1e4a08105597791fd6308d7fd70d3ddf (patch) | |
tree | 7d0922511173f14d601bf8599ce806be98ded888 /Src/Zle | |
parent | 49d6aace41f5fe47abfaa87d25c42dbdb84dfb88 (diff) | |
download | zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar.gz zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar.xz zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.zip |
33818: fix types passed to sizeof detected by coverity as being wrong
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 2e1a5273c..c129940f7 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -2059,8 +2059,8 @@ complistmatches(UNUSED(Hookdef dummy), Chdata dat) i = zterm_columns * listdat.nlines; free(mtab); - mtab = (Cmatch **) zalloc(i * sizeof(Cmatch **)); - memset(mtab, 0, i * sizeof(Cmatch **)); + mtab = (Cmatch **) zalloc(i * sizeof(Cmatch *)); + memset(mtab, 0, i * sizeof(Cmatch *)); free(mgtab); mgtab = (Cmgroup *) zalloc(i * sizeof(Cmgroup)); #ifdef DEBUG |