diff --git a/gl.c b/gl.c index 5f9ed843e0..f7bf756730 100644 --- a/gl.c +++ b/gl.c @@ -226,10 +226,7 @@ static inline void show_fps(void) if ((frames % 180) == 0 && frames > 0) { gettimeofday(&new_tv, NULL); - struct timeval tmp_tv = { - .tv_sec = tv.tv_sec, - .tv_usec = tv.tv_usec - }; + struct timeval tmp_tv = tv; gettimeofday(&tv, NULL); char tmpstr[256] = {0};