mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 06:26:41 +00:00
fix some breakage of ast_cli() that resulted in seg faults on Josh's machine.
I'm not sure why this never caused problems for me ... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
cli.c
2
cli.c
@@ -88,6 +88,8 @@ void ast_cli(int fd, char *fmt, ...)
|
|||||||
}
|
}
|
||||||
buf->len *= 2;
|
buf->len *= 2;
|
||||||
pthread_setspecific(ast_cli_buf_key, buf);
|
pthread_setspecific(ast_cli_buf_key, buf);
|
||||||
|
va_end(ap);
|
||||||
|
va_start(ap, fmt);
|
||||||
res = vsnprintf(buf->str, buf->len, fmt, ap);
|
res = vsnprintf(buf->str, buf->len, fmt, ap);
|
||||||
}
|
}
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|||||||
Reference in New Issue
Block a user