]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/strings: Fix uninitialized value.
authorCorey Farrell <git@cfware.com>
Fri, 6 Oct 2017 01:23:31 +0000 (21:23 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 6 Oct 2017 01:28:28 +0000 (20:28 -0500)
commit462dd7c2de62bd0f385b049da2a2b54b4c4f7b51
tree4db49759ed982dd4489cd71be9ff7f4516eb4882
parent646d97f62607535bb0f5ee413c2a423a5dac01b6
main/strings: Fix uninitialized value.

ast_strings_match uses sscanf and checks for non-zero return to verify a
token was parsed. This is incorrect as sscanf returns EOF (-1) for errors.

ASTERISK-27318 #close

Change-Id: Ifcece92605f58116eff24c5a0a3b0ee08b3c87b1
main/strings.c