Patchwork [6/6] json-parser: remove dead increment

login
register
mail settings
Submitter Amit Shah
Date Jan. 13, 2010, 10:54 a.m.
Message ID <1263380087-31821-7-git-send-email-amit.shah@redhat.com>
Download mbox | patch
Permalink /patch/42806/
State New
Headers show

Comments

Amit Shah - Jan. 13, 2010, 10:54 a.m.
clang-analyzer points out a redundant increment.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 json-parser.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/json-parser.c b/json-parser.c
index 7624c0f..e04932f 100644
--- a/json-parser.c
+++ b/json-parser.c
@@ -247,8 +247,6 @@  static QString *qstring_from_escaped_str(JSONParserContext *ctxt, QObject *token
         }
     }
 
-    ptr++;
-
     return str;
 
 out: