mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Must declare vrbls at the tops of blocks in C89 (wouldn't compile).
This commit is contained in:
parent
3576066cad
commit
38fc837fa9
1 changed files with 2 additions and 1 deletions
|
@ -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] == '_')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue