summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-08-20 18:38:56 +0000
committerJeremy Allison <jra@samba.org>2001-08-20 18:38:56 +0000
commitfd5ccac3bc19c1d725e6427f1f9f6d51a94ab631 (patch)
tree37db8caf914aef2f0290de634103fdbc3ff6114f
parentb9caa42d92f04ad128025e1689388b7da0e8cde8 (diff)
downloadsamba-fd5ccac3bc19c1d725e6427f1f9f6d51a94ab631.tar.gz
samba-fd5ccac3bc19c1d725e6427f1f9f6d51a94ab631.tar.xz
samba-fd5ccac3bc19c1d725e6427f1f9f6d51a94ab631.zip
Fixed typo that caused core....
Jeremy.
-rw-r--r--source/lib/time.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/source/lib/time.c b/source/lib/time.c
index 67a33c3b750..7bd3cd2374b 100644
--- a/source/lib/time.c
+++ b/source/lib/time.c
@@ -143,14 +143,16 @@ static int TimeZoneFaster(time_t t)
zone = TimeZone(t);
tdt = (struct dst_table *)Realloc(dst_table,
sizeof(dst_table[0])*(i+1));
- if (!tdt) {
- DEBUG(0,("TimeZoneFaster: out of memory!\n"));
- if (dst_table)
- free(dst_table);
- table_size = 0;
- } else {
+ if (!tdt) {
+ DEBUG(0,("TimeZoneFaster: out of memory!\n"));
+ if (dst_table)
+ free(dst_table);
+ table_size = 0;
+ } else {
+
+ dst_table = tdt;
table_size++;
-
+
dst_table[i].zone = zone;
dst_table[i].start = dst_table[i].end = t;