From: Russell Bryant Date: Sat, 5 Jan 2008 02:09:19 +0000 (+0000) Subject: Don't pass an empty string as the device name. X-Git-Tag: 1.4.18~12^2~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b11422fe8fef7aedc9f6fe71ec261d109329c474;p=thirdparty%2Fasterisk.git 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 --- 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;