Skip to content

Commit 465ee74

Browse files
markuspgnxpfrankli
authored andcommitted
Fix faulty function arguments
Signed-off-by: Markus Prasser <markuspg@users.noreply.github.com>
1 parent 7e23170 commit 465ee74

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libuuu/cmd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ int CmdIf::parser(char *p)
828828
{
829829
string err = "Unknown command: ";
830830
err += s;
831-
set_last_err_string(s);
831+
set_last_err_string(err);
832832
return -1;
833833
}
834834
size_t lc = pos;

libuuu/fastboot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int FBCmd::parser(char *p)
178178
{
179179
string err = "Unknown command: ";
180180
err += s;
181-
set_last_err_string(s);
181+
set_last_err_string(err);
182182
return -1;
183183
}
184184

@@ -304,7 +304,7 @@ int FBCopy::parser(char *p)
304304
{
305305
string err = "Unknown command: ";
306306
err += s;
307-
set_last_err_string(s);
307+
set_last_err_string(err);
308308
return -1;
309309
}
310310

0 commit comments

Comments
 (0)