From 971755842da910036135891bc0530b2abcf56de5 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 3 Apr 2009 11:56:48 +0200 Subject: [PATCH] Remove unused increments as detect by LLVM's CLang static analyzer. --- gst/gsturi.c | 2 +- gst/gstvalue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gsturi.c b/gst/gsturi.c index 44c8f45938..020cea9917 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -231,7 +231,7 @@ unescape_character (const char *scanner) return -1; } - second_digit = hex_to_int (*scanner++); + second_digit = hex_to_int (*scanner); if (second_digit < 0) { return -1; } diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 0e4322de86..7286a97c11 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -1910,7 +1910,7 @@ gst_string_unwrap (const gchar * s) goto beach; /* null terminate result string and return */ - *write++ = '\0'; + *write = '\0'; return ret; beach: