From 3bbbaca14db70c6f255139c66a62b4cd5191462c Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 10 Aug 2007 16:35:01 +0000 Subject: [PATCH] move variable declaration up --- pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipe.c b/pipe.c index fc8bf1c..284d4ee 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)