aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-08 08:07:47 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-08 08:07:47 +0000
commit01b65e2f0946e20b6e74ee19140487813e41ee57 (patch)
treea623ef4c57358b84f6ee14266ae684153cd38f4c /cdr
parent1c7659937336b56c7382a59cc2f492a38013fa63 (diff)
ast_strlen_zero changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2921 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rwxr-xr-xcdr/cdr_csv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdr/cdr_csv.c b/cdr/cdr_csv.c
index c669652be..17a0f4dab 100755
--- a/cdr/cdr_csv.c
+++ b/cdr/cdr_csv.c
@@ -19,6 +19,7 @@
#include <asterisk/cdr.h>
#include <asterisk/module.h>
#include <asterisk/logger.h>
+#include <asterisk/utils.h>
#include "../asterisk.h"
#include "../astconf.h"
@@ -224,7 +225,7 @@ static int csv_log(struct ast_cdr *cdr)
fclose(mf);
mf = NULL;
}
- if (strlen(cdr->accountcode)) {
+ if (!ast_strlen_zero(cdr->accountcode)) {
if (writefile(buf, cdr->accountcode))
ast_log(LOG_WARNING, "Unable to write CSV record to account file '%s'\n", cdr->accountcode);
}