X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/9439b17ad17f65af8369e926cb8fdadc175b334e..fa99e371284a414ce8b13892006df003d31a0e37:/compat_vasprintf.c?ds=sidebyside diff --git a/compat_vasprintf.c b/compat_vasprintf.c index f5741427..9040822b 100644 --- a/compat_vasprintf.c +++ b/compat_vasprintf.c @@ -6,7 +6,7 @@ int dummy; #else -/* $Id: compat_vasprintf.c,v 1.2 2015/03/20 15:25:12 schwarze Exp $ */ +/* $Id: compat_vasprintf.c,v 1.3 2015/10/06 18:32:19 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze * @@ -46,11 +46,11 @@ vasprintf(char **ret, const char *format, va_list ap) if (sz != -1 && (*ret = malloc(sz + 1)) != NULL) { if (vsnprintf(*ret, sz + 1, format, ap) == sz) - return(sz); + return sz; free(*ret); } *ret = NULL; - return(-1); + return -1; } #endif