Fix load of cdr_custom
authorMark Spencer <markster@digium.com>
Thu, 31 Mar 2005 15:50:15 +0000 (15:50 +0000)
committerMark Spencer <markster@digium.com>
Thu, 31 Mar 2005 15:50:15 +0000 (15:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5314 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_custom.c

index 8d8eecd..28ff2e0 100755 (executable)
@@ -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");