aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-07-18 05:36:14 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-07-18 05:36:14 +0800
commit833b8636a3dc41e6144f5082f89e21bbe41258e3 (patch)
tree282336ecee228b4348920b40f0ecb8b551ec84f7 /libical/src
parent3fb11f9003e2cda736264a4ff53c7984ee366433 (diff)
downloadgsoc2013-evolution-833b8636a3dc41e6144f5082f89e21bbe41258e3.tar
gsoc2013-evolution-833b8636a3dc41e6144f5082f89e21bbe41258e3.tar.gz
gsoc2013-evolution-833b8636a3dc41e6144f5082f89e21bbe41258e3.tar.bz2
gsoc2013-evolution-833b8636a3dc41e6144f5082f89e21bbe41258e3.tar.lz
gsoc2013-evolution-833b8636a3dc41e6144f5082f89e21bbe41258e3.tar.xz
gsoc2013-evolution-833b8636a3dc41e6144f5082f89e21bbe41258e3.tar.zst
gsoc2013-evolution-833b8636a3dc41e6144f5082f89e21bbe41258e3.zip
do not strdup a NULL (valid) timezone
2001-07-17 JP Rosevear <jpr@ximian.com> * src/libical/icaltimezone.c (icaltimezone_get_tznames_from_vtimezone): do not strdup a NULL (valid) timezone svn path=/trunk/; revision=11180
Diffstat (limited to 'libical/src')
-rw-r--r--libical/src/libical/icaltimezone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libical/src/libical/icaltimezone.c b/libical/src/libical/icaltimezone.c
index eb2392414f..300ac7924e 100644
--- a/libical/src/libical/icaltimezone.c
+++ b/libical/src/libical/icaltimezone.c
@@ -414,7 +414,7 @@ icaltimezone_get_tznames_from_vtimezone (icalcomponent *component)
/* If either of the TZNAMEs was found just return that, else NULL. */
tznames = standard_tzname ? standard_tzname : daylight_tzname;
- return strdup (tznames);
+ return tznames ? strdup (tznames) : NULL;
}
}