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:23:31 +0000 (21:23 -0400)
commit0f3e725503a84ce9b39120b5f74f1e504d18a98a
treedebd94c788059ebb39ff6c7a800802669ec8fda8
parent3ef6834c3b6fb9cb73164dcc56a10820026a63c5
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