Merge "cdr: Fix 'core show channel' CDR variable truncation."
authorJoshua Colp <jcolp@digium.com>
Fri, 15 May 2015 15:20:51 +0000 (10:20 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Fri, 15 May 2015 15:20:51 +0000 (10:20 -0500)
main/cdr.c

index 9b32f9d..c6f49f1 100644 (file)
@@ -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);