Fix error message parameter

Use the local argument value, not the global optarg variable (even if it
has the same value in practice, as it's passed as argument).
This commit is contained in:
Romain Vimont 2024-06-24 22:55:24 +02:00
parent 0b926922bc
commit 9fa30ab1ae
1 changed files with 1 additions and 1 deletions

View File

@ -2038,7 +2038,7 @@ parse_pause_on_exit(const char *s, enum sc_pause_on_exit *pause_on_exit) {
}
LOGE("Unsupported pause on exit mode: %s "
"(expected true, false or if-error)", optarg);
"(expected true, false or if-error)", s);
return false;
}