aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
Diffstat (limited to 'cdr')
-rwxr-xr-xcdr/cdr_custom.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cdr/cdr_custom.c b/cdr/cdr_custom.c
index 8d8eecd3a..28ff2e0cd 100755
--- a/cdr/cdr_custom.c
+++ b/cdr/cdr_custom.c
@@ -126,10 +126,9 @@ int unload_module(void)
int load_module(void)
{
- int res;
+ int res = 0;
- res = load_config(0);
- if (!res) {
+ if (!load_config(0)) {
res = ast_cdr_register(name, desc, custom_log);
if (res)
ast_log(LOG_ERROR, "Unable to register custom CDR handling\n");