diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-07-16 03:50:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-07-16 03:50:22 (GMT) |
commit | 265fba40c8789cbfc623bc6a07d5a66f152e8155 (patch) | |
tree | e5b315d5de4ce14561261606ef22881c05961371 | |
parent | 2dbfd88245dd70907689a437b717202df75539a1 (diff) | |
download | cpython-265fba40c8789cbfc623bc6a07d5a66f152e8155.zip cpython-265fba40c8789cbfc623bc6a07d5a66f152e8155.tar.gz cpython-265fba40c8789cbfc623bc6a07d5a66f152e8155.tar.bz2 |
move declaration to top of block
-rw-r--r-- | Parser/tokenizer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index a079c9d..5c0bd6e 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -254,9 +254,10 @@ get_coding_spec(const char *s, char **spec, Py_ssize_t size, struct tok_state *t if (begin < t) { char* r = new_string(begin, t - begin, tok); + char* q; if (!r) return 0; - char* q = get_normal_name(r); + q = get_normal_name(r); if (r != q) { PyMem_FREE(r); r = new_string(q, strlen(q), tok); |