summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-07-16 03:50:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-07-16 03:50:25 (GMT)
commitcb2226cb6902993ebe68d7c7748d42e0240958b9 (patch)
treed4a359a7ccf66077aa4335de45e23a179134e79d /Parser/tokenizer.c
parentfd9c0203deca2be420a245f30954babf3600a47e (diff)
parent265fba40c8789cbfc623bc6a07d5a66f152e8155 (diff)
downloadcpython-cb2226cb6902993ebe68d7c7748d42e0240958b9.zip
cpython-cb2226cb6902993ebe68d7c7748d42e0240958b9.tar.gz
cpython-cb2226cb6902993ebe68d7c7748d42e0240958b9.tar.bz2
merge 3.3
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index cbbadfb..c4160fc 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);