fixed uninitialized pointers due to Cvar_GetHelp and Cmd_GetHelp

This commit is contained in:
myT 2017-11-13 03:07:34 +01:00
parent f36f363020
commit 79f46df525
2 changed files with 6 additions and 0 deletions

View file

@ -640,6 +640,8 @@ qbool Cmd_GetHelp( const char** desc, const char** help, const char* cmd_name )
}
}
*desc = NULL;
*help = NULL;
return qfalse;
}

View file

@ -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;