提交 ed130e05 编写于 作者: R Romain Vimont

Fix possibly uninitialized value

Due to gotos, "ret" may be returned uninitialized.
上级 192fbd84
......@@ -308,6 +308,8 @@ scrcpy(const struct scrcpy_options *options) {
return false;
}
bool ret = false;
bool server_started = false;
bool fps_counter_initialized = false;
bool video_buffer_initialized = false;
......@@ -449,7 +451,7 @@ scrcpy(const struct scrcpy_options *options) {
input_manager_init(&input_manager, options);
bool ret = event_loop(options);
ret = event_loop(options);
LOGD("quit...");
screen_destroy(&screen);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册