xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3bbbaca14db70c6f255139c66a62b4cd5191462c
parent bc0117033440edb34ef1c0f72c0ceac5a7ee6831
Author: rsc <rsc>
Date:   Fri, 10 Aug 2007 16:35:01 +0000

move variable declaration up

Diffstat:
Mpipe.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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)