mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +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:
parent
0b926922bc
commit
9fa30ab1ae
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue