From: Tor Lillqvist Date: Thu, 31 Aug 2000 20:56:42 +0000 (+0000) Subject: Keep the check for non-NULL parameter. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=48b41a2f5f36507a78ff7f8f1b4d57393ee4ec7e;p=dana%2Fcg-glib.git Keep the check for non-NULL parameter. --- diff --git a/glib/gmain.c b/glib/gmain.c index dafd09a4..53bb2194 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 dafd09a4..53bb2194 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);