about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-11-30 23:19:55 +0100
committerOliver Kiddle <opk@zsh.org>2014-11-30 23:19:55 +0100
commit0d4b548d1e4a08105597791fd6308d7fd70d3ddf (patch)
tree7d0922511173f14d601bf8599ce806be98ded888 /Src/Zle
parent49d6aace41f5fe47abfaa87d25c42dbdb84dfb88 (diff)
downloadzsh-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.c4
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