From 61889c3c088058549f4d8bbd650043c2075b697c Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Mon, 30 Jul 2001 21:44:09 +0000 Subject: changed the debugging message to avoid a crash on non-glibc boxes. (Using 2001-07-30 Damon Chaplin * src/libical/icaltimezone.c (icaltimezone_get_builtin_timezone): changed the debugging message to avoid a crash on non-glibc boxes. (Using %s with a NULL argument will crash them.) svn path=/trunk/; revision=11492 --- libical/src/libical/icaltimezone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libical/src') diff --git a/libical/src/libical/icaltimezone.c b/libical/src/libical/icaltimezone.c index 5afb7449f2..92bb9b7c10 100644 --- a/libical/src/libical/icaltimezone.c +++ b/libical/src/libical/icaltimezone.c @@ -1286,7 +1286,8 @@ icaltimezone_get_builtin_timezone (const char *location) int lower, upper, middle, cmp; char *zone_location; - fprintf (stderr, "Getting builtin timezone: %s\n", location); + fprintf (stderr, "Getting builtin timezone: %s\n", + location ? location : "(null)"); if (!location || !location[0]) return NULL; -- cgit v1.2.3