]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
json-parser: remove dead increment
authorAmit Shah <amit.shah@redhat.com>
Wed, 13 Jan 2010 10:54:47 +0000 (16:24 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 Jan 2010 23:14:15 +0000 (17:14 -0600)
clang-analyzer points out a redundant increment.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
json-parser.c

index 7624c0f9bd43e0c0812cd2e36871a38eebc0e445..e04932f9070385f7bef4f7b8b32ecf3150806719 100644 (file)
@@ -247,8 +247,6 @@ static QString *qstring_from_escaped_str(JSONParserContext *ctxt, QObject *token
         }
     }
 
-    ptr++;
-
     return str;
 
 out: