]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix logic error when checking for a devstate provider.
authorMark Michelson <mmichelson@digium.com>
Mon, 17 May 2010 22:00:28 +0000 (22:00 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 17 May 2010 22:00:28 +0000 (22:00 +0000)
commit760f0a8a8b879180bb82e2232e5f292d74f439cd
tree9ca2a402e217fc963315ece50a5f101bd27fab28
parent109a363733cb4262420de17d08ea0170539fc7fa
Fix logic error when checking for a devstate provider.

When using strsep, if one of the list of specified separators is not found,
it is the first parameter to strsep which is now NULL, not the pointer returned
by strsep.

This issue isn't especially severe in that the worst it is likely to do is waste
some cycles when a device with no '/' and no ':' is passed to ast_device_state.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@263639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/devicestate.c