diff options
author | des <des@FreeBSD.org> | 2008-10-21 12:10:30 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-10-21 12:10:30 +0000 |
commit | d9ae813ea1e74131d4bd84b8bfa77da974d580eb (patch) | |
tree | 83c3a6e3fd06cd73b9ee2660ba0547125dbf3677 /lib/libarchive/archive_util.c | |
parent | a9989b9d40bcea1318f2c3feff53b2025a0e2aae (diff) | |
download | FreeBSD-src-d9ae813ea1e74131d4bd84b8bfa77da974d580eb.zip FreeBSD-src-d9ae813ea1e74131d4bd84b8bfa77da974d580eb.tar.gz |
Move va_end() up
Diffstat (limited to 'lib/libarchive/archive_util.c')
-rw-r--r-- | lib/libarchive/archive_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_util.c b/lib/libarchive/archive_util.c index a29be34..767987e 100644 --- a/lib/libarchive/archive_util.c +++ b/lib/libarchive/archive_util.c @@ -168,6 +168,7 @@ archive_set_error(struct archive *a, int error_number, const char *fmt, ...) va_start(ap, fmt); archive_string_vsprintf(&(a->error_string), fmt, ap); + va_end(ap); if (error_number > 0) { archive_strcat(&(a->error_string), ": "); #ifdef HAVE_STRERROR_R @@ -184,7 +185,6 @@ archive_set_error(struct archive *a, int error_number, const char *fmt, ...) archive_strcat(&(a->error_string), errp); } a->error = a->error_string.s; - va_end(ap); } void |