Add a g_return_val_if_fail check in both versions. Proposed by Patrik

* glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
        check in both versions. Proposed by Patrik Olsson in bug 540545.

svn path=/trunk/; revision=7142
This commit is contained in:
Matthias Clasen 2008-07-02 16:16:27 +00:00
parent fb73f68040
commit fef22bfe23
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-07-02 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
check in both versions. Proposed by Patrik Olsson in bug 540545.
2008-07-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.

View File

@ -1715,6 +1715,8 @@ g_get_current_time (GTimeVal *result)
FILETIME ft;
guint64 *time64 = (guint64 *) &ft;
g_return_if_fail (result != NULL);
GetSystemTimeAsFileTime (&ft);
/* Convert from 100s of nanoseconds since 1601-01-01