]> sjero.net Git - wget/blobdiff - src/html-url.c
[svn] Don't crash on <meta http-equiv=refresh>.
[wget] / src / html-url.c
index 74703ce6da932bd20782ad8dcdcede764437d242..fdafe0f1c46d19caf92f136f38f40da80fd87825 100644 (file)
@@ -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';