move variable declaration up
This commit is contained in:
parent
bc01170334
commit
3bbbaca14d
1 changed files with 3 additions and 2 deletions
5
pipe.c
5
pipe.c
|
@ -21,9 +21,10 @@ struct pipe {
|
|||
int
|
||||
pipe_alloc(struct file **f0, struct file **f1)
|
||||
{
|
||||
*f0 = *f1 = 0;
|
||||
struct pipe *p = 0;
|
||||
struct pipe *p;
|
||||
|
||||
p = 0;
|
||||
*f0 = *f1 = 0;
|
||||
if((*f0 = filealloc()) == 0)
|
||||
goto oops;
|
||||
if((*f1 = filealloc()) == 0)
|
||||
|
|
Loading…
Reference in a new issue