about summary refs log tree commit diff
path: root/timezone/zdump.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-12-31 23:51:15 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-12-31 23:51:15 +0000
commite740e5b1f0d786bdd95898b61c4a81f8f00bb063 (patch)
tree917c7ec1de1248c93402ee773662a5ab3e6b1787 /timezone/zdump.c
parent9b7f98b3453e7fd46c433369d3a33a5c1a02378d (diff)
downloadglibc-e740e5b1f0d786bdd95898b61c4a81f8f00bb063.tar.gz
glibc-e740e5b1f0d786bdd95898b61c4a81f8f00bb063.tar.xz
glibc-e740e5b1f0d786bdd95898b61c4a81f8f00bb063.zip
Update timezone code from tzcode 2018i.
This patch updates files coming from tzcode to the versions in tzcode
2018i.  No changes elsewhere in glibc were needed.

Tested for x86_64.

	* timezone/zdump.c: Update from tzcode 2018i.
	* timezone/zic.c: Likewise.
Diffstat (limited to 'timezone/zdump.c')
-rw-r--r--timezone/zdump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/timezone/zdump.c b/timezone/zdump.c
index 608f288691..0fc8ced96a 100644
--- a/timezone/zdump.c
+++ b/timezone/zdump.c
@@ -807,8 +807,10 @@ my_snprintf(char *s, size_t size, char const *format, ...)
     arglen = strlen(arg);
   } else {
     n = vsprintf(buf, format, args);
-    if (n < 0)
+    if (n < 0) {
+      va_end(args);
       return n;
+    }
     arg = buf;
     arglen = n;
   }