Initialize char variables

This commit is contained in:
twinaphex 2016-11-25 18:25:59 +01:00
parent b0cae5eafb
commit 88b1c3ed4c

View File

@ -277,8 +277,11 @@ static void gfx_ctx_drm_update_window_title(void *data)
char buf_fps[128];
settings_t *settings = config_get_ptr();
buf[0] = buf_fps[0] = '\0';
video_monitor_get_fps(buf, sizeof(buf),
buf_fps, sizeof(buf_fps));
if (settings->fps_show)
runloop_msg_queue_push( buf_fps, 1, 1, false);
}