mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user