From ddc51c3ebaab9a73b80f0e2cbd00a74a1d4b2971 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 10 Feb 2013 14:25:02 +0100 Subject: [PATCH] Ensure that FPS buffer is not left uninitialized. --- gfx/gfx_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/gfx_common.c b/gfx/gfx_common.c index abe0a0734c..c70bf7af70 100644 --- a/gfx/gfx_common.c +++ b/gfx/gfx_common.c @@ -30,6 +30,7 @@ bool gfx_get_fps(char *buf, size_t size, bool always_write) static rarch_time_t fps_time; static float last_fps; bool ret = false; + *buf = '\0'; rarch_time_t new_time = rarch_get_time_usec(); if (g_extern.frame_count)