diff --git a/pipe.c b/pipe.c
index fc8bf1c8c1869159228ab6ec0952a4526bc6ce7c..284d4ee828a03511a79c0d9dfb5e0752aeaa4e24 100644
--- a/pipe.c
+++ b/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)