diff options
Diffstat (limited to 'gl/asnprintf.c')
| -rw-r--r-- | gl/asnprintf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gl/asnprintf.c b/gl/asnprintf.c index 0488b6be..05582499 100644 --- a/gl/asnprintf.c +++ b/gl/asnprintf.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Formatted output to strings. | 1 | /* Formatted output to strings. |
| 2 | Copyright (C) 1999, 2002, 2006, 2009-2025 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2002, 2006, 2009-2026 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -25,10 +25,8 @@ char * | |||
| 25 | asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) | 25 | asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) |
| 26 | { | 26 | { |
| 27 | va_list args; | 27 | va_list args; |
| 28 | char *result; | ||
| 29 | |||
| 30 | va_start (args, format); | 28 | va_start (args, format); |
| 31 | result = vasnprintf (resultbuf, lengthp, format, args); | 29 | char *result = vasnprintf (resultbuf, lengthp, format, args); |
| 32 | va_end (args); | 30 | va_end (args); |
| 33 | return result; | 31 | return result; |
| 34 | } | 32 | } |
