diff --git a/cdr/cdr_custom.c b/cdr/cdr_custom.c index e0f5646e530e62e5fa4a3c2d6b8be86cc18ae1df..8d8eecd3ac690c96dba669c440cdd5dc2bf2f0a7 100755 --- a/cdr/cdr_custom.c +++ b/cdr/cdr_custom.c @@ -129,11 +129,10 @@ int load_module(void) int res; res = load_config(0); - if (!res) + if (!res) { res = ast_cdr_register(name, desc, custom_log); - if (res) { - ast_log(LOG_ERROR, "Unable to register custom CDR handling\n"); - res = 0; + if (res) + ast_log(LOG_ERROR, "Unable to register custom CDR handling\n"); if (mf) fclose(mf); }