m4-commit
[Top][All Lists]
Advanced

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

[SCM] GNU M4 source repository branch, branch-1.4, updated. v1.4.16-2-g5


From: Eric Blake
Subject: [SCM] GNU M4 source repository branch, branch-1.4, updated. v1.4.16-2-g54cbf9d
Date: Fri, 29 Apr 2011 20:19:59 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU M4 source repository".

http://git.sv.gnu.org/gitweb/?p=m4.git;a=commitdiff;h=54cbf9d1800116c4b84125ff1c48be93e6d03587

The branch, branch-1.4 has been updated
       via  54cbf9d1800116c4b84125ff1c48be93e6d03587 (commit)
      from  6ef732d4eb5f53db6741d4bf1efa35ebcb6e8fd0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 54cbf9d1800116c4b84125ff1c48be93e6d03587
Author: Eric Blake <address@hidden>
Date:   Fri Apr 29 14:16:49 2011 -0600

    m4_error: fix missing va_end
    
    Most va_end implementations are no-ops, so it probably didn't
    affect many people, but POSIX requires all va_start to be
    matched with va_end for the rare platform where va_end is not
    a no-op.  Detected by Coverity.
    
    * src/m4.c (m4_error, m4_error_at_line): Add missing va_end.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 src/m4.c  |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 894ca8b..862b516 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-29  Eric Blake  <address@hidden>
+
+       m4_error: fix missing va_end
+       * src/m4.c (m4_error, m4_error_at_line): Add missing va_end.
+
 2011-03-01  Eric Blake  <address@hidden>
 
        Release Version 1.4.16.
diff --git a/src/m4.c b/src/m4.c
index d7ad7cd..6f1645a 100644
--- a/src/m4.c
+++ b/src/m4.c
@@ -99,6 +99,7 @@ m4_error (int status, int errnum, const char *format, ...)
                   current_line, format, args);
   if (fatal_warnings && ! retcode)
     retcode = EXIT_FAILURE;
+  va_end (args);
 }
 
 /*-------------------------------.
@@ -114,6 +115,7 @@ m4_error_at_line (int status, int errnum, const char *file, 
int line,
   verror_at_line (status, errnum, line ? file : NULL, line, format, args);
   if (fatal_warnings && ! retcode)
     retcode = EXIT_FAILURE;
+  va_end (args);
 }
 
 #ifndef SIGBUS


hooks/post-receive
-- 
GNU M4 source repository



reply via email to

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