initialize pipe pointers

This commit is contained in:
Alfred Perlstein 2001-05-17 18:22:58 +00:00
parent 82a283fcf3
commit 2deb4a20c3

View File

@ -179,6 +179,7 @@ pipe(p, uap)
if (pipe_zone == NULL)
pipe_zone = zinit("PIPE", sizeof (struct pipe), 0, 0, 4);
rpipe = wpipe = NULL;
if (pipe_create(&rpipe) || pipe_create(&wpipe)) {
pipeclose(rpipe);
pipeclose(wpipe);