diff options
Diffstat (limited to 'main/cdr.c')
-rw-r--r-- | main/cdr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/cdr.c b/main/cdr.c index f48ddf38d..991b01a25 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -367,8 +367,7 @@ int ast_cdr_serialize_variables(struct ast_cdr *cdr, struct ast_str **buf, char char workspace[256]; int total = 0, x = 0, i; - (*buf)->used = 0; - (*buf)->str[0] = '\0'; + ast_str_reset(*buf); for (; cdr; cdr = recur ? cdr->next : NULL) { if (++x > 1) @@ -776,7 +775,7 @@ void ast_cdr_setdestchan(struct ast_cdr *cdr, const char *chann) } } -void ast_cdr_setapp(struct ast_cdr *cdr, char *app, char *data) +void ast_cdr_setapp(struct ast_cdr *cdr, const char *app, const char *data) { for (; cdr; cdr = cdr->next) { |