From b11422fe8fef7aedc9f6fe71ec261d109329c474 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 5 Jan 2008 02:09:19 +0000 Subject: [PATCH] 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 --- main/devicestate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/devicestate.c b/main/devicestate.c index 7e0c28f683..cc647a8239 100644 --- a/main/devicestate.c +++ b/main/devicestate.c @@ -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;