summaryrefslogtreecommitdiff
path: root/main/devicestate.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-01-05 02:12:10 +0000
committerRussell Bryant <russell@russellbryant.com>2008-01-05 02:12:10 +0000
commit585a31beb3fe140552c99cc5416268dc12f1c6f3 (patch)
tree6024c6aa0434df8b28f970acf2f29bb508670762 /main/devicestate.c
parent5d7ee7e9bf59ed90153bf5e71afb81333ddf260e (diff)
Merged revisions 96644 via svnmerge from
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
Diffstat (limited to 'main/devicestate.c')
-rw-r--r--main/devicestate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/devicestate.c b/main/devicestate.c
index d7790ba92..bd9261306 100644
--- a/main/devicestate.c
+++ b/main/devicestate.c
@@ -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;