]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
coredump fix for when object list is empty
authorwessels <>
Tue, 2 Apr 1996 06:22:03 +0000 (06:22 +0000)
committerwessels <>
Tue, 2 Apr 1996 06:22:03 +0000 (06:22 +0000)
src/cachemgr.cc

index 78c3140d7a80f5be0095ce94523e331488b517e6..af1fd832170fc98b9be43c8dd0448eb3c583ea00 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: cachemgr.cc,v 1.4 1996/03/27 01:45:56 wessels Exp $ */
+/* $Id: cachemgr.cc,v 1.5 1996/04/01 23:22:03 wessels Exp $ */
 
 #include "squid.h"
 
@@ -207,6 +207,9 @@ void parse_object(char *string)
     /* Parse out the url */
     url = strtok(tmp_line, w_space);
 
+    if (!url)
+       return;
+
 #if !ALL_OBJECTS
     if (!strncmp(url, "cache_object", 12))
        return;