summaryrefslogtreecommitdiff
path: root/cdr/cdr_custom.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-31 05:54:25 +0000
committerMark Spencer <markster@digium.com>2005-03-31 05:54:25 +0000
commitd4781cb4d126b600bc1ec55416e9ee1dd7669dd5 (patch)
tree699d413d159eaf3a5f49b590ec011796c35467f2 /cdr/cdr_custom.c
parentc4ebbd5b2e2ddcf10b3304393122b6efe1985489 (diff)
Fix custom CDR error (thanks kpfleming)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr/cdr_custom.c')
-rwxr-xr-xcdr/cdr_custom.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cdr/cdr_custom.c b/cdr/cdr_custom.c
index e0f5646e5..8d8eecd3a 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);
}