projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd1bfd
)
hack to prevent segfault when href is empty
author
Carsten Schurig
<Carsten.Schurig@web.de>
Fri, 18 Jan 2002 09:11:14 +0000
(09:11 +0000)
committer
Carsten Schurig
<Carsten.Schurig@web.de>
Fri, 18 Jan 2002 09:11:14 +0000
(09:11 +0000)
src/html.c
patch
|
blob
|
history
diff --git
a/src/html.c
b/src/html.c
index fec2ea1651eafeb7ed678ce2259e769bc43e7077..f3c2f0b55da76b8691c63586f254ec154cb0eea1 100644
(file)
--- a/
src/html.c
+++ b/
src/html.c
@@
-552,6
+552,7
@@
static HTMLState html_parse_tag(HTMLParser *parser)
/* the next token is the url, between double
* quotes */
char* url = strtok(NULL, "\"");
+ if (!url) break;
html_append_str(parser, url, strlen(url));
html_append_char(parser, ' ');
/* start enforcing html link */