Skip to content
Permalink
Browse files

acc_json: proper check if the mqueue name is set and the module can b…

…e loaded

(cherry picked from commit 7ce278d)
  • Loading branch information...
miconda committed Jan 7, 2019
1 parent c5216b5 commit 06610073bb490355d87a774a74716195d3c01192
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/modules/acc_json/acc_json_mod.c
@@ -115,7 +115,8 @@ static int mod_init(void)
if(output_mqueue_str && (load_mq_api(&mq_api) != 0)) {
LM_ERR("can't load mqueue module API, disabling json acc to mqueue\n");
output_mqueue_str = NULL;
} else {
}
if(output_mqueue_str) {
q_name.s = output_mqueue_str;
q_name.len = strlen(output_mqueue_str);
}

0 comments on commit 0661007

Please sign in to comment.
You can’t perform that action at this time.