Skip to content
Snippets Groups Projects
Commit 1a4a30aa authored by Sean Bright's avatar Sean Bright
Browse files

Use ast_str_strlen() instead of recalculating the string length.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 517afad0
No related branches found
No related tags found
No related merge requests found
......@@ -483,7 +483,7 @@ static u_char *ast_var_channels_table(struct variable *vp, oid *name, size_t *le
break;
case ASTCHANVARIABLES:
if (pbx_builtin_serialize_variables(chan, &out)) {
*var_len = strlen(ast_str_buffer(out));
*var_len = ast_str_strlen(out);
ret = (u_char *)ast_str_buffer(out);
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment