From 4c3d7ecbc471e8db04646002ba459245cbb390f2 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 7 Apr 2024 19:57:59 +0200 Subject: [PATCH] [win32] Check if cmdline_options is not NULL --- src/osdep/win32/overrides.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osdep/win32/overrides.c b/src/osdep/win32/overrides.c index 55e1e5b41..a379b72fd 100644 --- a/src/osdep/win32/overrides.c +++ b/src/osdep/win32/overrides.c @@ -77,7 +77,7 @@ static const char *keymap_2[] = { #define TRACE(m...) \ do { \ - if (get_cmd_opt_int("verbose") == 2) \ + if (cmdline_options && (get_cmd_opt_int("verbose") == 2)) \ DBG(m); \ } while (0)