From 48b41a2f5f36507a78ff7f8f1b4d57393ee4ec7e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 31 Aug 2000 20:56:42 +0000 Subject: [PATCH] Keep the check for non-NULL parameter. --- glib/gmain.c | 2 ++ gmain.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/glib/gmain.c b/glib/gmain.c index dafd09a..53bb219 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -632,6 +632,8 @@ g_get_current_time (GTimeVal *result) FILETIME filetime; gint64 t; + g_return_if_fail (result != NULL); + GetSystemTimeAsFileTime (&filetime); t = ((gint64) filetime.dwLowDateTime) + ((gint64) filetime.dwHighDateTime) * G_GINT64_CONSTANT (0x100000000); diff --git a/gmain.c b/gmain.c index dafd09a..53bb219 100644 --- a/gmain.c +++ b/gmain.c @@ -632,6 +632,8 @@ g_get_current_time (GTimeVal *result) FILETIME filetime; gint64 t; + g_return_if_fail (result != NULL); + GetSystemTimeAsFileTime (&filetime); t = ((gint64) filetime.dwLowDateTime) + ((gint64) filetime.dwHighDateTime) * G_GINT64_CONSTANT (0x100000000); -- 2.7.4