mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user