mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-31 21:10:44 +00:00
Remove unnecessary NULL pointer check in Cmd_RemoveCommand
This commit is contained in:
parent
a82a99f68d
commit
05758d52f4
1 changed files with 1 additions and 3 deletions
|
@ -689,9 +689,7 @@ void Cmd_RemoveCommand( const char *cmd_name ) {
|
||||||
}
|
}
|
||||||
if ( !strcmp( cmd_name, cmd->name ) ) {
|
if ( !strcmp( cmd_name, cmd->name ) ) {
|
||||||
*back = cmd->next;
|
*back = cmd->next;
|
||||||
if (cmd->name) {
|
Z_Free (cmd->name);
|
||||||
Z_Free(cmd->name);
|
|
||||||
}
|
|
||||||
Z_Free (cmd);
|
Z_Free (cmd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue