diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-29 15:46:00 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-29 15:55:21 +0200 |
commit | 8db1e09a7be58897e944269de2ad4c2c20e51f55 (patch) | |
tree | 22ea80c31e6ad3151480e70775e42ac5b118df6f | |
parent | 6c60e63821be453089110b30208f214a98cc51f8 (diff) | |
download | telepathy-glib-8db1e09a7be58897e944269de2ad4c2c20e51f55.tar.gz |
tp_debug_timestamped_log_handler: add some preconditions
-rw-r--r-- | telepathy-glib/debug.c | 3 |
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); |