aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2004-08-27 03:52:29 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2004-08-27 03:52:29 +0000
commit20192d1959705d98710a895baf5558e2d1d8a4ce (patch)
treef20cb6cf302ee8d0e7a9d11e6ed563fe3c1ae12e /contrib
parentdb9e0127da4bf2c96e0cbccf2df872d267653424 (diff)
downloadsrc-20192d1959705d98710a895baf5558e2d1d8a4ce.tar.gz
src-20192d1959705d98710a895baf5558e2d1d8a4ce.zip
Correct va_end usage.
Thanks to: Sean McNeil MFC after: 3 days
Notes
Notes: svn path=/head/; revision=134368
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gnu-sort/lib/version-etc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/gnu-sort/lib/version-etc.c b/contrib/gnu-sort/lib/version-etc.c
index 204d26238ec6..ccc135be8cb8 100644
--- a/contrib/gnu-sort/lib/version-etc.c
+++ b/contrib/gnu-sort/lib/version-etc.c
@@ -63,6 +63,9 @@ version_etc_va (FILE *stream,
n_authors = 0;
while (va_arg (tmp_authors, const char *) != NULL)
++n_authors;
+#ifdef va_copy
+ va_end (tmp_authors);
+#endif
}
if (command_name)