aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_features.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-31 17:18:58 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-31 17:18:58 +0000
commitb55d2bd3eaca8d5775ab0e8db5b85fa3f1066ce1 (patch)
tree5d573d837383e784c67dabc01fcfad5e8aec9801 /channels/chan_features.c
parentd00a87e2dcf7407f81d62d682474784cedb5a141 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@9001 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_features.c')
-rw-r--r--channels/chan_features.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c
index 7eef2e990..5f6ff2ca6 100644
--- a/channels/chan_features.c
+++ b/channels/chan_features.c
@@ -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) {