From fa4ff9651e68582404dae6b3b299232c4585321f Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 18 Nov 2024 20:49:03 +0100 Subject: [PATCH] fixed crash bug --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 3475aee0..6ec7f0b8 100644 --- a/src/files.c +++ b/src/files.c @@ -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; -- 2.34.1