aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/devicestate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/devicestate.c b/main/devicestate.c
index 7e0c28f68..cc647a823 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;