]> git.ipfire.org Git - thirdparty/asterisk.git/commit
loader: Refactor resource_name_match.
authorCorey Farrell <git@cfware.com>
Sat, 9 Dec 2017 00:19:34 +0000 (19:19 -0500)
committerCorey Farrell <git@cfware.com>
Sat, 9 Dec 2017 03:07:14 +0000 (21:07 -0600)
commit9fc4f10e0e2513c57261642ab530eee3d9ba20f5
tree51dc0c5ba8caf025e7662d848fa172eac8bdf7ef
parent54a86779a3d1cc2a1c859d76180f155865713bb5
loader: Refactor resource_name_match.

Optimize resource_name_match.  This change eliminates use of
ast_strdupa, instead verifying that both basename's are the same length,
then using strncasecmp.

Change-Id: I477275c0e954c99d74be5abfc8bb6545b04e5a3d
main/loader.c