]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
move declaration to top of block
authorBenjamin Peterson <benjamin@python.org>
Mon, 18 Mar 2013 17:59:41 +0000 (10:59 -0700)
committerBenjamin Peterson <benjamin@python.org>
Mon, 18 Mar 2013 17:59:41 +0000 (10:59 -0700)
Python/ast.c

index 2080e4991ae8d36ae4fed35ef1ea2549d1692b1d..4d517b7b546b11448f1eccbb2db2fa3787d08ffd 100644 (file)
@@ -1115,6 +1115,7 @@ ast_for_arg(struct compiling *c, const node *n)
     identifier name;
     expr_ty annotation = NULL;
     node *ch;
+    arg_ty tmp;
 
     assert(TYPE(n) == tfpdef || TYPE(n) == vfpdef);
     ch = CHILD(n, 0);
@@ -1130,7 +1131,7 @@ ast_for_arg(struct compiling *c, const node *n)
             return NULL;
     }
 
-    arg_ty tmp = arg(name, annotation, c->c_arena);
+    tmp = arg(name, annotation, c->c_arena);
     if (!tmp)
         return NULL;