projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7e60b7
)
Keep the check for non-NULL parameter.
author
Tor Lillqvist
<tml@src.gnome.org>
Thu, 31 Aug 2000 20:56:42 +0000
(20:56 +0000)
committer
Tor Lillqvist
<tml@src.gnome.org>
Thu, 31 Aug 2000 20:56:42 +0000
(20:56 +0000)
glib/gmain.c
patch
|
blob
|
history
gmain.c
patch
|
blob
|
history
diff --git
a/glib/gmain.c
b/glib/gmain.c
index
dafd09a
..
53bb219
100644
(file)
--- 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
(file)
--- 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);