From 20913df209b56b48a954c27639500ac04135831c Mon Sep 17 00:00:00 2001 From: markster Date: Thu, 31 Mar 2005 05:54:25 +0000 Subject: Fix custom CDR error (thanks kpfleming) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5313 f38db490-d61c-443f-a65b-d21fe96a405b --- cdr/cdr_custom.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cdr/cdr_custom.c') 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); } -- cgit v1.2.3