aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicestate.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-05 02:09:19 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-05 02:09:19 +0000
commit8294d92d3a7d6f6c558e0a64c94660d42a1aed90 (patch)
tree1a71c9db2031cbe87494e74bc7a5b0d6b5fa92bf /main/devicestate.c
parent12285cdca5962b1d2ff4657d9162151214acdf2d (diff)
Don't pass an empty string as the device name.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96644 f38db490-d61c-443f-a65b-d21fe96a405b
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 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;