mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
GIB segfault fix
This commit is contained in:
parent
f6697e0ef0
commit
09366866f7
1 changed files with 2 additions and 0 deletions
|
@ -1344,6 +1344,8 @@ Cmd_Process (void)
|
||||||
|
|
||||||
if (cmd_activebuffer->legacy) // Legacy buffers will never require processing, ever
|
if (cmd_activebuffer->legacy) // Legacy buffers will never require processing, ever
|
||||||
return 0;
|
return 0;
|
||||||
|
if (!Cmd_Argc()) // No tokens, don't bother
|
||||||
|
return 0;
|
||||||
cmd = (cmd_function_t *) Hash_Find (cmd_hash, cmd_activebuffer->argv[0]->original->str);
|
cmd = (cmd_function_t *) Hash_Find (cmd_hash, cmd_activebuffer->argv[0]->original->str);
|
||||||
if (cmd && cmd->pure) // If the function is pure, don't bother processing
|
if (cmd && cmd->pure) // If the function is pure, don't bother processing
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue