Use the ast_vasprintf macro instead of vasprintf directly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137403 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
9b37c61e1e
commit
cbb6473eba
|
@ -276,7 +276,7 @@ static int execute_and_consume(DBPROCESS *dbproc, const char *fmt, ...)
|
|||
char *buffer;
|
||||
|
||||
va_start(ap, fmt);
|
||||
if (vasprintf(&buffer, fmt, ap) < 0) {
|
||||
if (ast_vasprintf(&buffer, fmt, ap) < 0) {
|
||||
va_end(ap);
|
||||
return 1;
|
||||
}
|
||||
|
|
Reference in New Issue