]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix sometimes-uninitialized warning in pbx_config
authorMatthew Jordan <mjordan@digium.com>
Mon, 6 Apr 2015 18:03:23 +0000 (18:03 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 6 Apr 2015 18:03:23 +0000 (18:03 +0000)
commita061688239946dae81e67e2e7cfa2d75a89aa811
treed9397aec4465e6a23b4b4e88b9058d2044b3972b
parent0437fd733096c4dd5e8221de3747db28fb9778e5
clang compiler warnings: Fix sometimes-uninitialized warning in pbx_config

This patch fixes a warning caught by clang, in which a char pointer could be
assigned to before it was initialized. The patch re-organizes the code to
ensure that the pointer is always initialized, even on off nominal paths.

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@434090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
pbx/pbx_config.c