]> granicus.if.org Git - python/commitdiff
Must declare vrbls at the tops of blocks in C89 (wouldn't compile).
authorTim Peters <tim.peters@gmail.com>
Sun, 13 Apr 2003 03:25:15 +0000 (03:25 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 13 Apr 2003 03:25:15 +0000 (03:25 +0000)
Modules/_csv.c

index 07d368c1a974b315735bf0c9fb986f2cd81e8d7e..794eb8213a28a23298454c010a4f6826c52c39a2 100644 (file)
@@ -352,8 +352,9 @@ dialect_init(DialectObj * self, PyObject * args, PyObject * kwargs)
                 }
                 /* 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] == '_')