Skip to content

Commit

Permalink
- fix nullptr dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle authored and coelckers committed Dec 11, 2023
1 parent 93772c4 commit 0bf6340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/console/c_cvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bf6340

Please sign in to comment.