[asterisk-commits] dbrooks: trunk r229460 - /trunk/apps/app_softhangup.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 11 12:14:02 CST 2009
Author: dbrooks
Date: Wed Nov 11 12:13:56 2009
New Revision: 229460
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229460
Log:
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
Modified:
trunk/apps/app_softhangup.c
Modified: trunk/apps/app_softhangup.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_softhangup.c?view=diff&rev=229460&r1=229459&r2=229460
==============================================================================
--- trunk/apps/app_softhangup.c (original)
+++ trunk/apps/app_softhangup.c Wed Nov 11 12:13:56 2009
@@ -74,7 +74,7 @@
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);
More information about the asterisk-commits
mailing list