mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 12:40:09 +00:00
Ensure that FPS buffer is not left uninitialized.
This commit is contained in:
parent
d8a4bb6d12
commit
ddc51c3eba
@ -30,6 +30,7 @@ bool gfx_get_fps(char *buf, size_t size, bool always_write)
|
|||||||
static rarch_time_t fps_time;
|
static rarch_time_t fps_time;
|
||||||
static float last_fps;
|
static float last_fps;
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
*buf = '\0';
|
||||||
|
|
||||||
rarch_time_t new_time = rarch_get_time_usec();
|
rarch_time_t new_time = rarch_get_time_usec();
|
||||||
if (g_extern.frame_count)
|
if (g_extern.frame_count)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user