summaryrefslogtreecommitdiff
path: root/channels/chan_features.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-01-31 17:18:58 +0000
committerRussell Bryant <russell@russellbryant.com>2006-01-31 17:18:58 +0000
commite01861fafd6f74f65f2cb4ac90b811a9bb0a52c7 (patch)
tree5d573d837383e784c67dabc01fcfad5e8aec9801 /channels/chan_features.c
parent18eac350afb23f696f4c56233b6a18094b201041 (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: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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) {