]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sorcery.c: Speed up ast_sorcery_retrieve_by_id()
authorRichard Mudgett <rmudgett@digium.com>
Thu, 6 Apr 2017 23:30:11 +0000 (18:30 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 11 Apr 2017 18:00:06 +0000 (13:00 -0500)
commit5bf425840eaed4588236f4d0d6b7c943b4067784
tree8903960872a2b70c069b13f408c9a348c4ea923b
parent63560ae9b2fac95c16a66e1ca01422833dbee768
sorcery.c: Speed up ast_sorcery_retrieve_by_id()

Return early if ast_sorcery_retrieve_by_id() is not passed an id to find.
Also eliminated the RAII_VAR() usage in the function.

Change-Id: I871dbe162a301b5ced8b4393cec27180c7c6b218
main/sorcery.c