mirror of https://github.com/Genymobile/scrcpy
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
|
@ -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…
Reference in New Issue