]> 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:37 +0000 (18:03 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 6 Apr 2015 18:03:37 +0000 (18:03 +0000)
commit0ecd472e4f890cb932265028bca9b4c2fef562ea
treeaa6c25f3f86cc17e00ed5ffadde32865642a0ec1
parent4e7be5b2dc03ff5685b92408e303caeeb68c7598
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)
........

Merged revisions 434090 from http://svn.asterisk.org/svn/asterisk/branches/11

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