From 9198cfcc9effcb9623ff1ab0d36a66e685470040 Mon Sep 17 00:00:00 2001 From: David Brooks Date: Wed, 11 Nov 2009 18:35:58 +0000 Subject: [PATCH] Merged revisions 229460 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r229460 | dbrooks | 2009-11-11 12:13:56 -0600 (Wed, 11 Nov 2009) | 7 lines 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@229492 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_softhangup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c index c4297cd2e2..a29233f1f6 100644 --- a/apps/app_softhangup.c +++ b/apps/app_softhangup.c @@ -74,7 +74,7 @@ static int softhangup_exec(struct ast_channel *chan, void *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);