提交 3bbbaca1 创建 作者: rsc's avatar rsc

move variable declaration up

上级 bc011703
...@@ -21,9 +21,10 @@ struct pipe { ...@@ -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)
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论