diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-31 10:00:00 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-31 10:00:00 +0900 |
commit | ae79052376c516fbd836cea08a2187cf26049aea (patch) | |
tree | c231dc8610e36f22c83ee220b3bce44f61ab209a | |
parent | 2c1e2db8769b6f5d31a7f46dc227cf1569937c23 (diff) | |
download | efl-ae79052376c516fbd836cea08a2187cf26049aea.tar.gz |
elm calendar - fix gmtime call to use an actual value
e85c92662bfec6a88bb7d2d091682daa429acba0 added this bug. before it was
always set to 259200 (first sunday after epoch).
found by PVS studio
-rw-r--r-- | src/lib/elementary/elm_calendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_calendar.c b/src/lib/elementary/elm_calendar.c index 7427084b00..ed80c45341 100644 --- a/src/lib/elementary/elm_calendar.c +++ b/src/lib/elementary/elm_calendar.c @@ -710,7 +710,7 @@ _set_headers(Evas_Object *obj) static char part[] = "ch_0.text"; int i; struct tm *t; - time_t temp; + time_t temp = 259200; // the first sunday since epoch ELM_CALENDAR_DATA_GET(obj, sd); elm_layout_freeze(obj); |