projects/aports·blob master · refs

15 lines · 499 B

1diff --git a/champlain/champlain-network-tile-source.c b/champlain/champlain-network-tile-source.c
2index 7cadfa5..ad24fd4 100644
3--- a/champlain/champlain-network-tile-source.c
4+++ b/champlain/champlain-network-tile-source.c
5@@ -994,8 +994,8 @@ get_modified_time_string (ChamplainTile *tile)
6
7 if (time == NULL)
8 return NULL;
9-
10- struct tm *other_time = gmtime (&time->tv_sec);
11+ time_t sec = time->tv_sec;
12+ struct tm *other_time = gmtime (&sec);
13 char value[100];
14
15 #ifdef G_OS_WIN32