Static code analysis fixes

This commit is contained in:
twinaphex 2015-09-28 17:39:39 +02:00
parent 6b4c419f7a
commit 1b91001c95

@ -74,7 +74,10 @@ static int asprintf(char **strp, const char *fmt, ...) {
va_start(ap, fmt);
if (!(*strp = malloc(2048)))
{
va_end(ap);
return(0);
}
ret = vsnprintf(*strp, 2048, fmt, ap);
va_end(ap);
return(ret);