summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--telepathy-glib/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index 0bb6316ab..efc902a18 100644
--- a/telepathy-glib/debug.c
+++ b/telepathy-glib/debug.c
@@ -375,6 +375,9 @@ tp_debug_timestamped_log_handler (const gchar *log_domain,
GTimeVal now;
gchar *tmp, *now_str;
+ g_return_if_fail (log_domain != NULL);
+ g_return_if_fail (message != NULL);
+
g_get_current_time (&now);
now_str = g_time_val_to_iso8601 (&now);
tmp = g_strdup_printf ("%s: %s", now_str, message);