1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 09:21:19 +02:00

test for unset in pipestatussetfn() (13917)

This commit is contained in:
Sven Wischnowsky 2001-04-06 07:49:27 +00:00
parent 4b56a40b6c
commit a971509182
2 changed files with 10 additions and 4 deletions

@ -1,5 +1,7 @@
2001-04-06 Sven Wischnowsky <wischnow@zsh.org>
* 13917: Src/params.c: test for unset in pipestatussetfn()
* 13916: Src/params.c: like 13907, but for backward searches
2001-04-05 Felix Rosencrantz <f_rosencrantz@yahoo.com>

@ -2873,11 +2873,15 @@ pipestatgetfn(Param pm)
static void
pipestatsetfn(Param pm, char **x)
{
int i;
if (x) {
int i;
for (i = 0; *x && i < MAX_PIPESTATS; i++, x++)
pipestats[i] = atoi(*x);
numpipestats = i;
for (i = 0; *x && i < MAX_PIPESTATS; i++, x++)
pipestats[i] = atoi(*x);
numpipestats = i;
}
else
numpipestats = 0;
}
/**/