diff options
author | dbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-11 18:20:21 +0000 |
---|---|---|
committer | dbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-11 18:20:21 +0000 |
commit | 80b81321eae29a3f18c453cf881b4e9fa7f932c8 (patch) | |
tree | ee09025b8a008729a4be97bc57392cb3cb52fff6 /apps | |
parent | 6148aa5188592d4d2c7d4658da6a898b2b952ee8 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@229475 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_softhangup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c index 4bfd4004f..bef555931 100644 --- a/apps/app_softhangup.c +++ b/apps/app_softhangup.c @@ -59,7 +59,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); |