mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-23 12:32:08 +00:00
Ensure that Cmd_Args ALWAYS returns a valid string, avoiding crashes when only one arg was given.
This commit is contained in:
parent
1f0affcc91
commit
d3f34bb4ad
1 changed files with 2 additions and 0 deletions
|
@ -630,6 +630,8 @@ Cmd_Args
|
||||||
*/
|
*/
|
||||||
const char *Cmd_Args (void)
|
const char *Cmd_Args (void)
|
||||||
{
|
{
|
||||||
|
if (!cmd_args)
|
||||||
|
return "";
|
||||||
return cmd_args;
|
return cmd_args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue