fixed crash bug
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 18 Nov 2024 19:49:03 +0000 (20:49 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 18 Nov 2024 19:49:03 +0000 (20:49 +0100)
src/files.c

index 3475aee091daef3cdac805b21ff83f152228b75b..6ec7f0b88b80e071de3035e969fa31d50301efa4 100644 (file)
@@ -2101,7 +2101,7 @@ filetype_id_list[] =
 static boolean check_special_flags(char *flag)
 {
   if (strEqual(options.special_flags, flag) ||
-      strEqual(leveldir_current->special_flags, flag))
+      (leveldir_current != NULL && strEqual(leveldir_current->special_flags, flag)))
     return TRUE;
 
   return FALSE;