From 7bb2e5f582cfec7592d73d6c678d2de5e2a2c977 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 2 Jun 2015 16:51:10 +0200 Subject: [PATCH] initialize timespec variable --- performance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/performance.c b/performance.c index 5c8d0e6df2..d08c3a4cb5 100644 --- a/performance.c +++ b/performance.c @@ -247,7 +247,7 @@ retro_time_t rarch_get_time_usec(void) #elif defined(GEKKO) return ticks_to_microsecs(gettime()); #elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(ANDROID) || defined(__MACH__) - struct timespec tv; + struct timespec tv = {0}; if (clock_gettime(CLOCK_MONOTONIC, &tv) < 0) return 0; return tv.tv_sec * INT64_C(1000000) + (tv.tv_nsec + 500) / 1000;