1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

33566: quash null pointer constant compiler warning

This commit is contained in:
Jun T 2014-10-29 08:48:17 -07:00 committed by Barton E. Schaefer
parent 691547cda6
commit d36421d376
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2014-10-29 Barton E. Schaefer <schaefer@zsh.org>
* 33566: Jun T.: Src/Modules/zselect.c: quash compiler warning
* 33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c:
fix thinko in status message for INT/QUIT signals; check errflag
in output loops so that unexpectedly long completion listings can

View file

@ -251,7 +251,7 @@ bin_zselect(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
outptr = outdata = (char **)zalloc((fdcount+1)*sizeof(char *));
while (nonempty(fdlist))
*outptr++ = getlinknode(fdlist);
*outptr = '\0';
*outptr = NULL;
/* and store in array parameter */
if (outhash)
sethparam(outhash, outdata);