]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix sometimes-initialized warning in func_math
authorMatthew Jordan <mjordan@digium.com>
Tue, 7 Apr 2015 02:09:19 +0000 (02:09 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 7 Apr 2015 02:09:19 +0000 (02:09 +0000)
commitdc63b9fcbc4197af0ebcc69514902e1c94088898
treed3b19efa41f39fe868e9b6ba7cef4d8a6d9ac549
parentc224c44a16130d7d7d2a086d7c660181345c9793
clang compiler warnings: Fix sometimes-initialized warning in func_math

This patch fixes a bug in a unit test in func_math where a variable could be
passed to ast_free that wasn't allocated. This patch corrects the issue and
ensures that we only attempt to free a variable if we previously allocated
it.

Review: https://reviewboard.asterisk.org/r/4552

ASTERISK-24917
Reported by: dkdegroot
patches:
  rb4552.patch submitted by dkdegroot (License 6600)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@434190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_math.c