texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * info/util.c: add missing "va_end"


From: Gavin D. Smith
Subject: branch master updated: * info/util.c: add missing "va_end"
Date: Tue, 15 Oct 2024 16:44:56 -0400

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 3b54c494e0 * info/util.c: add missing "va_end"
3b54c494e0 is described below

commit 3b54c494e025c03c77c4c20ab4bd4cbfd2adacc3
Author: Vitezslav Crhonek <vcrhonek@redhat.com>
AuthorDate: Tue Oct 15 21:43:49 2024 +0100

    * info/util.c: add missing "va_end"
---
 ChangeLog   | 4 ++++
 info/util.c | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 0e0bd52ce7..0b325dc537 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-10-15  Vitezslav Crhonek  <vcrhonek@redhat.com>
+
+       * info/util.c: add missing "va_end"
+
 2024-10-15  Gavin Smith <gavinsmith0123@gmail.com>
 
        * info/session.c (info_menu_or_ref_item, info_intuit_options_node)
diff --git a/info/util.c b/info/util.c
index 7ecb90f06b..dd5f45b3bd 100644
--- a/info/util.c
+++ b/info/util.c
@@ -34,9 +34,12 @@ xvasprintf (char **ptr, const char *template, va_list ap)
 int
 xasprintf (char **ptr, const char *template, ...)
 {
+  int ret;
   va_list v;
   va_start (v, template);
-  return xvasprintf (ptr, template, v);
+  ret = xvasprintf (ptr, template, v);
+  va_end (v);
+  return ret;
 }
 
 /* Return the file buffer which belongs to WINDOW's node. */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]