raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ae79052376c516fbd836cea08a2187cf26049aea

commit ae79052376c516fbd836cea08a2187cf26049aea
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Jul 31 10:00:00 2017 +0900

    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
---
 src/lib/elementary/elm_calendar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);

-- 


Reply via email to