diff options
author | Jeremy Allison <jra@samba.org> | 2001-08-20 18:38:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-08-20 18:38:56 +0000 |
commit | fd5ccac3bc19c1d725e6427f1f9f6d51a94ab631 (patch) | |
tree | 37db8caf914aef2f0290de634103fdbc3ff6114f /source/lib/time.c | |
parent | b9caa42d92f04ad128025e1689388b7da0e8cde8 (diff) | |
download | samba-fd5ccac3bc19c1d725e6427f1f9f6d51a94ab631.tar.gz samba-fd5ccac3bc19c1d725e6427f1f9f6d51a94ab631.tar.xz samba-fd5ccac3bc19c1d725e6427f1f9f6d51a94ab631.zip |
Fixed typo that caused core....
Jeremy.
Diffstat (limited to 'source/lib/time.c')
-rw-r--r-- | source/lib/time.c | 16 |
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; |