mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-01 23:05:19 +00:00
Fix possibly uninitialized value
Due to gotos, "ret" may be returned uninitialized.
This commit is contained in:
@@ -308,6 +308,8 @@ scrcpy(const struct scrcpy_options *options) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ret = false;
|
||||||
|
|
||||||
bool server_started = false;
|
bool server_started = false;
|
||||||
bool fps_counter_initialized = false;
|
bool fps_counter_initialized = false;
|
||||||
bool video_buffer_initialized = false;
|
bool video_buffer_initialized = false;
|
||||||
@@ -449,7 +451,7 @@ scrcpy(const struct scrcpy_options *options) {
|
|||||||
|
|
||||||
input_manager_init(&input_manager, options);
|
input_manager_init(&input_manager, options);
|
||||||
|
|
||||||
bool ret = event_loop(options);
|
ret = event_loop(options);
|
||||||
LOGD("quit...");
|
LOGD("quit...");
|
||||||
|
|
||||||
screen_destroy(&screen);
|
screen_destroy(&screen);
|
||||||
|
Reference in New Issue
Block a user