mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-20 01:22:16 +00:00
- Silence Coverity warning in platform_linux.c
- Don't do settings lookup when calling runloop_msg_queue_push
This commit is contained in:
parent
faf939856b
commit
b13d069578
@ -807,8 +807,7 @@ static void check_proc_acpi_sysfs_battery(const char *node,
|
||||
*percent = capacity;
|
||||
|
||||
end:
|
||||
if (buf)
|
||||
free(buf);
|
||||
free(buf);
|
||||
buf = NULL;
|
||||
}
|
||||
|
||||
|
@ -2101,7 +2101,8 @@ void video_driver_frame(const void *data, unsigned width,
|
||||
|
||||
video_driver_msg[0] = '\0';
|
||||
|
||||
if (runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_PULL, &msg) && msg)
|
||||
if (runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_PULL, &msg)
|
||||
&& settings->video.font_enable && msg)
|
||||
strlcpy(video_driver_msg, msg, sizeof(video_driver_msg));
|
||||
|
||||
if (!current_video || !current_video->frame(
|
||||
|
Loading…
x
Reference in New Issue
Block a user