pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35508de
)
fixed conditional jump error in valgrind
author
Michael Göhler
<somebody.here@gmx.de>
Fri, 5 Dec 2014 22:10:51 +0000
(23:10 +0100)
committer
Michael Göhler
<somebody.here@gmx.de>
Fri, 5 Dec 2014 22:10:51 +0000
(23:10 +0100)
src/url.c
patch
|
blob
|
history
diff --git
a/src/url.c
b/src/url.c
index
682bced
..
6872503
100644
(file)
--- 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, ')');
}
}
}