mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07:00
Cleaning up a few things in detect disconnect patch
Initialized ast_call_feature in detect_disconnect to avoid accessing uninitialized memory. Cleaned up /param tags in features.h. No longer send dynamic features in ast_feature_detect. issue #11583 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@183386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+1
-1
@@ -792,7 +792,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l
|
||||
static int detect_disconnect(struct ast_channel *chan, char code, char *featurecode, int len)
|
||||
{
|
||||
struct ast_flags features = { AST_FEATURE_DISCONNECT }; /* only concerned with disconnect feature */
|
||||
struct ast_call_feature feature;
|
||||
struct ast_call_feature feature = { 0, };
|
||||
char *tmp;
|
||||
int res;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user