aboutsummaryrefslogtreecommitdiffstats
path: root/libical
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-07-31 05:44:09 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-07-31 05:44:09 +0800
commit61889c3c088058549f4d8bbd650043c2075b697c (patch)
treefcb779bae3fcd18a03f09a20dbce4ef0dfc8f528 /libical
parentddbf92b2eca29f97d82f4aa6eb213ed59f1e8217 (diff)
downloadgsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.tar
gsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.tar.gz
gsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.tar.bz2
gsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.tar.lz
gsoc2013-evolution-61889c3c088058549f4d8bbd650043c2075b697c.tar.xz
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')
-rw-r--r--libical/ChangeLog6
-rw-r--r--libical/src/libical/icaltimezone.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index bb4a1e06e0..08d291ee08 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,5 +1,11 @@
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.)
+
+2001-07-30 Damon Chaplin <damon@ximian.com>
+
* src/libical/icalcomponent.c (icalcomponent_merge_vtimezone): copy
the TZID just in case the property we got it from gets modified.
(icalcomponent_rename_tzids_callback): break out of the loop if we
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;