From 0e40fc9a3c75331606d3e584e268b40a51abbcd3 Mon Sep 17 00:00:00 2001 From: hniksic Date: Thu, 31 Jan 2002 19:34:31 -0800 Subject: [PATCH] [svn] Don't crash on . Published in . --- src/ChangeLog | 5 +++++ src/html-url.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1660fd81..0586a2cc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-02-01 Hrvoje Niksic + + * html-url.c (tag_handle_meta): Don't crash on where content is missing. + 2002-01-31 Herold Heiko * ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h, diff --git a/src/html-url.c b/src/html-url.c index 74703ce6..fdafe0f1 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -521,10 +521,13 @@ tag_handle_meta (int tagid, struct taginfo *tag, struct map_context *ctx) get to the URL. */ struct urlpos *entry; - int attrind; - char *p, *refresh = find_attr (tag, "content", &attrind); int timeout = 0; + char *p; + + char *refresh = find_attr (tag, "content", &attrind); + if (!refresh) + return; for (p = refresh; ISDIGIT (*p); p++) timeout = 10 * timeout + *p - '0'; -- 2.39.2