summaryrefslogtreecommitdiffstats
path: root/gl/asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/asprintf.c')
-rw-r--r--gl/asprintf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gl/asprintf.c b/gl/asprintf.c
index 336700be..5da2d085 100644
--- a/gl/asprintf.c
+++ b/gl/asprintf.c
@@ -1,5 +1,5 @@
1/* Formatted output to strings. 1/* Formatted output to strings.
2 Copyright (C) 1999, 2002, 2006-2007, 2009-2025 Free Software Foundation, 2 Copyright (C) 1999, 2002, 2006-2007, 2009-2026 Free Software Foundation,
3 Inc. 3 Inc.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -30,10 +30,8 @@ int
30asprintf (char **resultp, const char *format, ...) 30asprintf (char **resultp, const char *format, ...)
31{ 31{
32 va_list args; 32 va_list args;
33 int result;
34
35 va_start (args, format); 33 va_start (args, format);
36 result = vasprintf (resultp, format, args); 34 int result = vasprintf (resultp, format, args);
37 va_end (args); 35 va_end (args);
38 return result; 36 return result;
39} 37}