summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_value.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_value.c')
-rw-r--r--src/lib/eina/eina_value.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index c18f369006..b71fa7da96 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -3567,11 +3567,14 @@ _eina_value_type_tm_compare(const Eina_Value_Type *type, const void *a, const vo
3567 struct tm tma = *(struct tm*)a; 3567 struct tm tma = *(struct tm*)a;
3568 struct tm tmb = *(struct tm*)b; 3568 struct tm tmb = *(struct tm*)b;
3569 time_t ta, tb; 3569 time_t ta, tb;
3570 struct timeval tva = {0}, tvb = {0};
3570 3571
3571 ta = mktime(&tma); 3572 ta = mktime(&tma);
3572 tb = mktime(&tmb); 3573 tb = mktime(&tmb);
3574 tva.tv_sec = ta;
3575 tvb.tv_sec = tb;
3573 3576
3574 return _eina_value_type_timeval_compare(type, &ta, &tb); 3577 return _eina_value_type_timeval_compare(type, &tva, &tvb);
3575} 3578}
3576 3579
3577static Eina_Bool 3580static Eina_Bool