[asterisk-commits] mmichelson: trunk r364901 - in /trunk: ./ funcs/func_volume.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 1 18:11:26 CDT 2012
Author: mmichelson
Date: Tue May 1 18:11:22 2012
New Revision: 364901
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=364901
Log:
Fix Coverity-reported ARRAY_VS_SINGLETON error.
As it turned out, this wasn't a huge deal. We were calling
ast_app_parse_options() for a set of options of which none
took arguments. The proper thing to do for this case is to
pass NULL for the "args" parameter here. We were instead passing
a seemingly-randomly chosen char * from the function. While this
would never get written to, you can rest assured things would
have gotten bad had new options (which took arguments) been added
to func_volume.
(closes issue ASTERISK-19656)
........
Merged revisions 364899 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 364900 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/funcs/func_volume.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/funcs/func_volume.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_volume.c?view=diff&rev=364901&r1=364900&r2=364901
==============================================================================
--- trunk/funcs/func_volume.c (original)
+++ trunk/funcs/func_volume.c Tue May 1 18:11:22 2012
@@ -206,7 +206,7 @@
if (!ast_strlen_zero(args.options)) {
struct ast_flags flags = { 0 };
- ast_app_parse_options(volume_opts, &flags, &data, args.options);
+ ast_app_parse_options(volume_opts, &flags, NULL, args.options);
vi->flags = flags.flags;
} else {
vi->flags = 0;
More information about the asterisk-commits
mailing list