mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +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, '-'))) {
|
if (!norecurse && (tmp = strrchr(device, '-'))) {
|
||||||
*tmp = '\0';
|
*tmp = '\0';
|
||||||
__ast_device_state_changed_literal(tmp, 1);
|
__ast_device_state_changed_literal(device, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user