diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-04-13 03:25:15 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-04-13 03:25:15 (GMT) |
commit | 38fc837fa94afc71db9436b725df68c4cf5efda8 (patch) | |
tree | 55b026e679322086c85e239669918a4bcf3a5442 /Modules | |
parent | 3576066cad445e0b3870766fa661b534f9799de7 (diff) | |
download | cpython-38fc837fa94afc71db9436b725df68c4cf5efda8.zip cpython-38fc837fa94afc71db9436b725df68c4cf5efda8.tar.gz cpython-38fc837fa94afc71db9436b725df68c4cf5efda8.tar.bz2 |
Must declare vrbls at the tops of blocks in C89 (wouldn't compile).
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_csv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index 07d368c..794eb82 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -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] == '_') |