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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@96644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2008-01-05 02:09:19 +00:00
parent 8770045be8
commit b11422fe8f

View File

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