From: Michael Göhler Date: Fri, 5 Dec 2014 22:10:51 +0000 (+0100) Subject: fixed conditional jump error in valgrind X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=5af57d6ee98b00fa2f3de6f4f54309cd74368f35;p=smdp.git fixed conditional jump error in valgrind --- diff --git a/src/url.c b/src/url.c index 682bced..6872503 100644 --- a/src/url.c +++ b/src/url.c @@ -139,7 +139,7 @@ int url_get_amount(void) { int url_count_inline(const char *line) { int count = 0; - const char* i = line; + const char *i = line; for (; *i; i++) { if (*i == '\\') { @@ -149,7 +149,7 @@ int url_count_inline(const char *line) { i++; if (*i == '(' && strchr(i, ')')) { count ++; - i = strchr(i, ')') + 1; + i = strchr(i, ')'); } } }