]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/main.c
Import all of the bug fixes from the OpenPrinting CUPS repository.
[thirdparty/cups.git] / scheduler / main.c
index d5fdf971a8acee0ac51bf9e5f353828c4ae3f2bc..bd6080a508ca3b64837fadfa42231fa3c59f52dd 100644 (file)
@@ -581,7 +581,7 @@ main(int  argc,                             /* I - Number of command-line args */
   * Clean out old temp files and printer cache data.
   */
 
-  if (!strncmp(TempDir, RequestRoot, strlen(RequestRoot)))
+  if (!RequestRoot || !strncmp(TempDir, RequestRoot, strlen(RequestRoot)))
     cupsdCleanFiles(TempDir, NULL);
 
   cupsdCleanFiles(CacheDir, "*.ipp");