mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
Merge branch 'date-time-new-now' into 'main'
gdatetime: add NULL guard in g_date_time_new_now() See merge request GNOME/glib!2938
This commit is contained in:
commit
2f284193a7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user