mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
test for unset in pipestatussetfn() (13917)
This commit is contained in:
parent
4b56a40b6c
commit
a971509182
@ -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>
|
||||
|
12
Src/params.c
12
Src/params.c
@ -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;
|
||||
}
|
||||
|
||||
/**/
|
||||
|
Loading…
Reference in New Issue
Block a user