From 88b1c3ed4c9a30d0c98522259f9b75703ddb9213 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 25 Nov 2016 18:25:59 +0100 Subject: [PATCH] Initialize char variables --- gfx/drivers_context/drm_ctx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/drivers_context/drm_ctx.c b/gfx/drivers_context/drm_ctx.c index d4cd5cfe1c..d3ca729ca4 100644 --- a/gfx/drivers_context/drm_ctx.c +++ b/gfx/drivers_context/drm_ctx.c @@ -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); }