optimize a bit name completion by avoiding repeated calls to
authorLuigi Rizzo <rizzo@icir.org>
Tue, 28 Mar 2006 13:46:04 +0000 (13:46 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 28 Mar 2006 13:46:04 +0000 (13:46 +0000)
commit45edaa4c3a453424623676810fe7655983a66985
tree0b6a73a90857be8dc0c3f620c83d399861a312db
parentbf2ae443385fc15af5531484aed19aa9a3eca07f
optimize a bit name completion by avoiding repeated calls to
strlen(word), localize variables and normalize the test
for finding the candidate string.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_agent.c