]> granicus.if.org Git - python/commitdiff
Skip unused value in tokenizer code
authorChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 22:09:45 +0000 (00:09 +0200)
committerChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 22:09:45 +0000 (00:09 +0200)
In the case of an escape character, c is never read. tok_next() is
used to advance the pointer.

CID 1225097

Parser/tokenizer.c

index 90a8270c1924f7abe821f9b7b381c1a0d46f21c3..d1e5d352692e8131bd4b4a14743f551aec36b020 100644 (file)
@@ -1737,7 +1737,7 @@ tok_get(struct tok_state *tok, char **p_start, char **p_end)
             else {
                 end_quote_size = 0;
                 if (c == '\\')
-                    c = tok_nextc(tok);  /* skip escaped char */
+                    tok_nextc(tok);  /* skip escaped char */
             }
         }