aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_softhangup.c
diff options
context:
space:
mode:
authordbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-11 18:13:56 +0000
committerdbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-11 18:13:56 +0000
commit060cd853ac8afeb5529069057538109fdd70a107 (patch)
tree8e811129820ada54d8066bf366be69768a8c7515 /apps/app_softhangup.c
parent22e4cda5c232f42829c0ca5a289e81019a6ba272 (diff)
Flags not initialized in app_softhangup.c, causing undefined behavior
Trivial patch [kobaz] to initialize an ast_flags = {0} (closes issue #16129) Reported by: kobaz git-svn-id: http://svn.digium.com/svn/asterisk/trunk@229460 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_softhangup.c')
-rw-r--r--apps/app_softhangup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c
index 3513bb775..1c880b4e8 100644
--- a/apps/app_softhangup.c
+++ b/apps/app_softhangup.c
@@ -74,7 +74,7 @@ static int softhangup_exec(struct ast_channel *chan, const char *data)
struct ast_channel *c = NULL;
char *cut, *opts[0];
char name[AST_CHANNEL_NAME] = "", *parse;
- struct ast_flags flags;
+ struct ast_flags flags = {0};
int lenmatch;
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(channel);