diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/platform.c b/libbb/platform.c index fdd388259..17ad3f75a 100644 --- a/libbb/platform.c +++ b/libbb/platform.c | |||
@@ -30,7 +30,8 @@ int FAST_FUNC vasprintf(char **string_ptr, const char *format, va_list p) | |||
30 | 30 | ||
31 | if (r < 128) { | 31 | if (r < 128) { |
32 | va_end(p2); | 32 | va_end(p2); |
33 | return xstrdup(buf); | 33 | *string_ptr = xstrdup(buf); |
34 | return r; | ||
34 | } | 35 | } |
35 | 36 | ||
36 | *string_ptr = xmalloc(r+1); | 37 | *string_ptr = xmalloc(r+1); |