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
1.4
Russell Bryant 19 years ago
parent 8770045be8
commit b11422fe8f

@ -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;

Loading…
Cancel
Save