From 0bf634013e9420768d6dd1b943b4849558df76ed Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 10 Dec 2023 19:26:19 -0500 Subject: [PATCH] - fix nullptr dereference --- src/common/console/c_cvars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/console/c_cvars.cpp b/src/common/console/c_cvars.cpp index ee8090ba988..1cbe6772d07 100644 --- a/src/common/console/c_cvars.cpp +++ b/src/common/console/c_cvars.cpp @@ -1711,7 +1711,7 @@ void FBaseCVar::ListVars (const char *filter, int listtype) bool ismatch; - if (includedesc) + if (filter && includedesc) { // search always allow partial matches // also allow matching to cvar name, localised description, and description language-id