diff Modules/_csv.c @ 28594:de50934e1145 legacy-trunk

Must declare vrbls at the tops of blocks in C89 (wouldn't compile).
author Tim Peters <tim.peters@gmail.com>
date Sun, 13 Apr 2003 03:25:15 +0000
parents ef05f981bc4b
children 11660f4361f8
line wrap: on
line diff
--- a/Modules/_csv.c	Sat Apr 12 22:27:11 2003 +0000
+++ b/Modules/_csv.c	Sun Apr 13 03:25:15 2003 +0000
@@ -352,8 +352,9 @@
                 }
                 /* And extract the attributes */
                 for (i = 0; i < PyList_GET_SIZE(dir_list); ++i) {
+			char *s;
                         name_obj = PyList_GET_ITEM(dir_list, i);
-			char *s = PyString_AsString(name_obj);
+			s = PyString_AsString(name_obj);
 			if (s == NULL)
 				return -1;
                         if (s[0] == '_')