Mercurial > geeqie
diff src/cache-loader.c @ 691:631d626c1f6b
Fix some incomplete initialization warnings.
author | zas_ |
---|---|
date | Mon, 19 May 2008 09:27:30 +0000 |
parents | 905688aa2317 |
children | efed9a1520d6 |
line wrap: on
line diff
--- a/src/cache-loader.c Mon May 19 08:46:37 2008 +0000 +++ b/src/cache-loader.c Mon May 19 09:27:30 2008 +0000 @@ -134,7 +134,9 @@ text = exif_get_data_as_text(exif, "formatted.DateTime"); if (text) { - struct tm t = { 0 }; + struct tm t; + + memset(&t, 0, sizeof(t)); if (sscanf(text, "%d:%d:%d %d:%d:%d", &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &t.tm_sec) == 6)