mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Move va_end() up
This commit is contained in:
parent
0aeb000d7b
commit
c1f91a825f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184123
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user