]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix Coverity-reported ARRAY_VS_SINGLETON error.
authorMark Michelson <mmichelson@digium.com>
Tue, 1 May 2012 23:10:16 +0000 (23:10 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 1 May 2012 23:10:16 +0000 (23:10 +0000)
commitb26e8b35b6a9875c326d6cacaad6fa4c23745c94
treec4fc75617819978df4242855f454db93ab54fdee
parent4bea1d2561c06f8d329787ba31bf703f1ba07266
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@364900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_volume.c