Merged revisions 96644 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sat, 5 Jan 2008 02:12:10 +0000 (02:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 5 Jan 2008 02:12:10 +0000 (02:12 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96644 | russell | 2008-01-04 20:09:19 -0600 (Fri, 04 Jan 2008) | 2 lines

Don't pass an empty string as the device name.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96645 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/devicestate.c

index d7790ba..bd92613 100644 (file)
@@ -466,7 +466,7 @@ static int __ast_devstate_changed_literal(enum ast_device_state state, char *buf
         */
        if (!norecurse && (tmp = strrchr(device, '-'))) {
                *tmp = '\0';
-               __ast_devstate_changed_literal(state, tmp, 1);
+               __ast_devstate_changed_literal(state, device, 1);
        }
        
        return 1;