mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-30 22:05:12 +00:00
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:
@@ -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;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user