summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;