From 5af57d6ee98b00fa2f3de6f4f54309cd74368f35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Fri, 5 Dec 2014 23:10:51 +0100 Subject: [PATCH] fixed conditional jump error in valgrind --- src/url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ')'); } } } -- 2.20.1