aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicestate.c
diff options
context:
space:
mode:
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 aef21f70a..c36fa694c 100644
--- a/main/devicestate.c
+++ b/main/devicestate.c
@@ -372,7 +372,7 @@ int ast_devstate_prov_del(const char *label)
AST_RWLIST_WRLOCK(&devstate_provs);
AST_RWLIST_TRAVERSE_SAFE_BEGIN(&devstate_provs, devcb, list) {
if (!strcasecmp(devcb->label, label)) {
- AST_RWLIST_REMOVE_CURRENT(&devstate_provs, list);
+ AST_RWLIST_REMOVE_CURRENT(list);
ast_free(devcb);
res = 0;
break;