Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
690:a9ba46e466d2 | 691:631d626c1f6b |
---|---|
132 gchar *text; | 132 gchar *text; |
133 | 133 |
134 text = exif_get_data_as_text(exif, "formatted.DateTime"); | 134 text = exif_get_data_as_text(exif, "formatted.DateTime"); |
135 if (text) | 135 if (text) |
136 { | 136 { |
137 struct tm t = { 0 }; | 137 struct tm t; |
138 | |
139 memset(&t, 0, sizeof(t)); | |
138 | 140 |
139 if (sscanf(text, "%d:%d:%d %d:%d:%d", &t.tm_year, &t.tm_mon, &t.tm_mday, | 141 if (sscanf(text, "%d:%d:%d %d:%d:%d", &t.tm_year, &t.tm_mon, &t.tm_mday, |
140 &t.tm_hour, &t.tm_min, &t.tm_sec) == 6) | 142 &t.tm_hour, &t.tm_min, &t.tm_sec) == 6) |
141 { | 143 { |
142 t.tm_year -= 1900; | 144 t.tm_year -= 1900; |