diff --git a/glib/gdatetime.c b/glib/gdatetime.c index db746564d..a9c472e55 100644 --- a/glib/gdatetime.c +++ b/glib/gdatetime.c @@ -959,6 +959,8 @@ g_date_time_new_now (GTimeZone *tz) { gint64 now_us; + g_return_val_if_fail (tz != NULL, NULL); + now_us = g_get_real_time (); return g_date_time_new_from_unix (tz, now_us);