diff options
author | Joshua Colp <jcolp@digium.com> | 2015-05-15 10:20:51 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-05-15 10:20:51 -0500 |
commit | c49b0dc2a143c5b75d1e4997f510e766bc0944ee (patch) | |
tree | 8ec0472bfd0d07b011c04b2729198a09460ff805 /main | |
parent | 87470f7d812f1a5d5c1d966b3e1197c43f127aaf (diff) | |
parent | e48d29054f6092ad758d8b67515dcc6226de2e1b (diff) |
Merge "cdr: Fix 'core show channel' CDR variable truncation."
Diffstat (limited to 'main')
-rw-r--r-- | main/cdr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/main/cdr.c b/main/cdr.c index 9b32f9d9f..c6f49f16f 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -3096,13 +3096,9 @@ int ast_cdr_serialize_variables(const char *channel_name, struct ast_str **buf, struct cdr_object *it_cdr; struct ast_var_t *variable; const char *var; - RAII_VAR(char *, workspace, ast_malloc(256), ast_free); + char workspace[256]; int total = 0, x = 0, i; - if (!workspace) { - return 0; - } - if (!cdr) { RAII_VAR(struct module_config *, mod_cfg, ao2_global_obj_ref(module_configs), ao2_cleanup); |