mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
fixed uninitialized pointers due to Cvar_GetHelp and Cmd_GetHelp
This commit is contained in:
parent
f36f363020
commit
79f46df525
2 changed files with 6 additions and 0 deletions
|
@ -640,6 +640,8 @@ qbool Cmd_GetHelp( const char** desc, const char** help, const char* cmd_name )
|
|||
}
|
||||
}
|
||||
|
||||
*desc = NULL;
|
||||
*help = NULL;
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
|
|
@ -450,7 +450,11 @@ qbool Cvar_GetHelp( const char **desc, const char **help, const char* var_name )
|
|||
{
|
||||
cvar_t* var = Cvar_FindVar( var_name );
|
||||
if ( !var )
|
||||
{
|
||||
*desc = NULL;
|
||||
*help = NULL;
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
*desc = var->desc;
|
||||
*help = var->help;
|
||||
|
|
Loading…
Reference in a new issue