updates.
[silc.git] / lib / silcutil / silclog.c
index 91b254d508b90ec63960eec19d7ad3c8e2c96ae5..a0c9181a7f72a93a8f2b80931aa3ea11b05f057c 100644 (file)
@@ -95,6 +95,9 @@ void silc_log_output(const char *filename, uint32 maxsize,
       break;
     }
 
+  if (!filename)
+    filename = " ";
+
   /* Purge the log file if the max size is defined. */
   if (maxsize) {
     fp = fopen(filename, "r");