aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_smdi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c
index af20fbefd..1df720e83 100644
--- a/res/res_smdi.c
+++ b/res/res_smdi.c
@@ -615,6 +615,8 @@ static int smdi_load(int reload)
ast_copy_string(iface->name, v->value, sizeof(iface->name));
+ iface->thread = AST_PTHREADT_NULL;
+
if (!(iface->file = fopen(iface->name, "r"))) {
ast_log(LOG_ERROR, "Error opening SMDI interface %s (%s)\n", iface->name, strerror(errno));
ASTOBJ_UNREF(iface, ast_smdi_interface_destroy);