mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
33566: quash null pointer constant compiler warning
This commit is contained in:
parent
691547cda6
commit
d36421d376
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue