summaryrefslogtreecommitdiff
path: root/lib/unistdio/u-asnprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unistdio/u-asnprintf.h')
-rw-r--r--lib/unistdio/u-asnprintf.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/unistdio/u-asnprintf.h b/lib/unistdio/u-asnprintf.h
index a6b9e390..a892e82a 100644
--- a/lib/unistdio/u-asnprintf.h
+++ b/lib/unistdio/u-asnprintf.h
@@ -1,5 +1,5 @@
/* Formatted output to strings.
- Copyright (C) 1999, 2002, 2005-2007, 2009-2025 Free Software Foundation,
+ Copyright (C) 1999, 2002, 2005-2007, 2009-2026 Free Software Foundation,
Inc.
This file is free software.
@@ -27,10 +27,8 @@ DCHAR_T *
ASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, const FCHAR_T *format, ...)
{
va_list args;
- DCHAR_T *result;
-
va_start (args, format);
- result = VASNPRINTF (resultbuf, lengthp, format, args);
+ DCHAR_T *result = VASNPRINTF (resultbuf, lengthp, format, args);
va_end (args);
return result;
}