Remove unnecessary NULL pointer check in Cmd_RemoveCommand

This commit is contained in:
Zack Middleton 2018-04-22 17:54:49 -05:00
parent a82a99f68d
commit 05758d52f4

View file

@ -689,9 +689,7 @@ void Cmd_RemoveCommand( const char *cmd_name ) {
}
if ( !strcmp( cmd_name, cmd->name ) ) {
*back = cmd->next;
if (cmd->name) {
Z_Free(cmd->name);
}
Z_Free (cmd->name);
Z_Free (cmd);
return;
}