loudmouth/lm-utils.c
changeset 168 ac1affcd5d22
parent 155 d24c4392d4e3
child 176 5cddc8cc2f78
--- a/loudmouth/lm-utils.c	Tue Aug 22 23:33:06 2006 +0000
+++ b/loudmouth/lm-utils.c	Fri Sep 01 14:01:48 2006 +0000
@@ -166,13 +166,17 @@
 #else
 	return g_strdup(hostname);
 #endif
-}struct tm *
+}
+
+struct tm *
 lm_utils_get_localtime (const gchar *stamp)
 {
 	struct tm tm;
 	time_t    t;
 	gint      year, month;
 	
+	g_return_val_if_fail (stamp != NULL, NULL);
+
 	/* 20021209T23:51:30 */
 
 	sscanf (stamp, "%4d%2d%2dT%2d:%2d:%2d",