[next] telepathy-glib: tp_debug_timestamped_log_handler: add some preconditions
Simon McVittie
smcv at kemper.freedesktop.org
Wed Sep 17 05:22:53 PDT 2014
Module: telepathy-glib
Branch: next
Commit: 8db1e09a7be58897e944269de2ad4c2c20e51f55
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=8db1e09a7be58897e944269de2ad4c2c20e51f55
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Thu May 29 15:46:00 2014 +0200
tp_debug_timestamped_log_handler: add some preconditions
---
telepathy-glib/debug.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index 0bb6316..efc902a 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);
More information about the telepathy-commits
mailing list