Index: useragent.c =================================================================== RCS file: /squid/squid/src/useragent.c,v retrieving revision 1.22.2.3 diff -u -p -r1.22.2.3 useragent.c --- useragent.c 2001/05/20 00:09:59 1.22.2.3 +++ useragent.c 2001/07/08 18:54:07 @@ -87,7 +87,8 @@ void useragentLogClose(void) { #if USE_USERAGENT_LOG - logfileClose(useragentlog); + if (useragentlog) + logfileClose(useragentlog); useragentlog = NULL; #endif }