From: David Brooks Date: Wed, 11 Nov 2009 18:13:56 +0000 (+0000) Subject: Flags not initialized in app_softhangup.c, causing undefined behavior X-Git-Tag: 11.0.0-beta1~3871 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5990d41bbe95cade20e2b6a190fa1e18363f82c;p=thirdparty%2Fasterisk.git 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/trunk@229460 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c index 3513bb7754..1c880b4e8b 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);