mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
define a global null_frame object so when queueing a null frame, you don't
have to allocate one on the stack git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -241,12 +241,11 @@ static int features_answer(struct ast_channel *ast)
|
||||
|
||||
static struct ast_frame *features_read(struct ast_channel *ast)
|
||||
{
|
||||
static struct ast_frame null_frame = { AST_FRAME_NULL, };
|
||||
struct feature_pvt *p = ast->tech_pvt;
|
||||
struct ast_frame *f;
|
||||
int x;
|
||||
|
||||
f = &null_frame;
|
||||
f = &ast_null_frame;
|
||||
ast_mutex_lock(&p->lock);
|
||||
x = indexof(p, ast, 0);
|
||||
if (!x && p->subchan) {
|
||||
|
||||
Reference in New Issue
Block a user