- removed 2 redundant string copies in CCMD code.

This commit is contained in:
Christoph Oelckers 2020-04-11 12:13:04 +02:00
parent 3db56651f4
commit 3113c6b69b
1 changed files with 2 additions and 4 deletions

View File

@ -643,8 +643,7 @@ CCMD (error)
{ {
if (argv.argc() > 1) if (argv.argc() > 1)
{ {
char *textcopy = copystring (argv[1]); I_Error ("%s", argv[1]);
I_Error ("%s", textcopy);
} }
else else
{ {
@ -656,8 +655,7 @@ UNSAFE_CCMD (error_fatal)
{ {
if (argv.argc() > 1) if (argv.argc() > 1)
{ {
char *textcopy = copystring (argv[1]); I_FatalError ("%s", argv[1]);
I_FatalError ("%s", textcopy);
} }
else else
{ {