(batch_convert): Free `initial_TZ' only if it was set.
authorJim Meyering <jim@meyering.net>
Wed, 19 Jul 2000 21:00:20 +0000 (21:00 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Jul 2000 21:00:20 +0000 (21:00 +0000)
src/date.c

index d8c8f8a..69abb78 100644 (file)
@@ -287,7 +287,8 @@ batch_convert (const char *input_filename, const char *format)
        }
     }
 
-  free (initial_TZ);
+  if (universal_time)
+    free (initial_TZ);
 
   if (fclose (in_stream) == EOF)
     error (2, errno, "`%s'", input_filename);