From 3113c6b69b860ac8195dd1597e5d17c400a9d0a5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 11 Apr 2020 12:13:04 +0200 Subject: [PATCH] - removed 2 redundant string copies in CCMD code. --- src/console/c_cmds.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/console/c_cmds.cpp b/src/console/c_cmds.cpp index 8d030eced..711bcf3b8 100644 --- a/src/console/c_cmds.cpp +++ b/src/console/c_cmds.cpp @@ -643,8 +643,7 @@ CCMD (error) { if (argv.argc() > 1) { - char *textcopy = copystring (argv[1]); - I_Error ("%s", textcopy); + I_Error ("%s", argv[1]); } else { @@ -656,8 +655,7 @@ UNSAFE_CCMD (error_fatal) { if (argv.argc() > 1) { - char *textcopy = copystring (argv[1]); - I_FatalError ("%s", textcopy); + I_FatalError ("%s", argv[1]); } else {