Merged revisions 96644 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96644 | russell | 2008-01-04 20:09:19 -0600 (Fri, 04 Jan 2008) | 2 lines

Don't pass an empty string as the device name.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2008-01-05 02:12:10 +00:00
parent 5d7ee7e9bf
commit 585a31beb3
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ static int __ast_devstate_changed_literal(enum ast_device_state state, char *buf
*/
if (!norecurse && (tmp = strrchr(device, '-'))) {
*tmp = '\0';
__ast_devstate_changed_literal(state, tmp, 1);
__ast_devstate_changed_literal(state, device, 1);
}
return 1;