Static code analysis fixes
This commit is contained in:
@@ -74,7 +74,10 @@ static int asprintf(char **strp, const char *fmt, ...) {
|
|||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
if (!(*strp = malloc(2048)))
|
if (!(*strp = malloc(2048)))
|
||||||
|
{
|
||||||
|
va_end(ap);
|
||||||
return(0);
|
return(0);
|
||||||
|
}
|
||||||
ret = vsnprintf(*strp, 2048, fmt, ap);
|
ret = vsnprintf(*strp, 2048, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
return(ret);
|
return(ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user