move variable declaration up

This commit is contained in:
rsc 2007-08-10 16:35:01 +00:00
parent bc01170334
commit 3bbbaca14d

5
pipe.c
View file

@ -21,9 +21,10 @@ struct pipe {
int int
pipe_alloc(struct file **f0, struct file **f1) pipe_alloc(struct file **f0, struct file **f1)
{ {
*f0 = *f1 = 0; struct pipe *p;
struct pipe *p = 0;
p = 0;
*f0 = *f1 = 0;
if((*f0 = filealloc()) == 0) if((*f0 = filealloc()) == 0)
goto oops; goto oops;
if((*f1 = filealloc()) == 0) if((*f1 = filealloc()) == 0)