diff options
author | Damon Chaplin <damon@ximian.com> | 2001-07-31 05:44:09 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-07-31 05:44:09 +0800 |
commit | 61889c3c088058549f4d8bbd650043c2075b697c (patch) | |
tree | fcb779bae3fcd18a03f09a20dbce4ef0dfc8f528 /libical/src | |
parent | ddbf92b2eca29f97d82f4aa6eb213ed59f1e8217 (diff) | |
download | gsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.tar.gz gsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.tar.zst gsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.zip |
changed the debugging message to avoid a crash on non-glibc boxes. (Using
2001-07-30 Damon Chaplin <damon@ximian.com>
* 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
Diffstat (limited to 'libical/src')
-rw-r--r-- | libical/src/libical/icaltimezone.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |