From 451bbd53d90c7f51846f93912e0dd5016752f999 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Wed, 18 Apr 2018 19:07:30 +0200 Subject: [PATCH] Fix another date test This may fix this crasher bug on windows: https://bugzilla.gnome.org/show_bug.cgi?id=795040 However on linux it only fixes a warning so I can't be sure until after the next nightly. --- libgnucash/engine/qofquerycore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/engine/qofquerycore.cpp b/libgnucash/engine/qofquerycore.cpp index bb236d1b76..991fb52ffa 100644 --- a/libgnucash/engine/qofquerycore.cpp +++ b/libgnucash/engine/qofquerycore.cpp @@ -454,7 +454,7 @@ date_to_string (gpointer object, QofParam *getter) { Timespec ts = ((query_date_getter)getter->param_getfcn)(object, getter); - if (ts.tv_sec || ts.tv_nsec) + if (ts.tv_sec != INT64_MAX) return g_strdup (gnc_print_date (ts)); return NULL;