aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-24 20:01:23 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-24 20:01:23 +0000
commit42e2c2da3db6cba2780b125f5f1ad567d3e4b8e3 (patch)
tree1a07875474d132cdc875278414ee14d3023208b3 /pbx.c
parentff681681c9833b48b97386e4088407f7359a5b1f (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@41003 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pbx.c b/pbx.c
index ad57810a9..f54618039 100644
--- a/pbx.c
+++ b/pbx.c
@@ -5906,9 +5906,7 @@ int pbx_builtin_serialize_variables(struct ast_channel *chan, char *buf, size_t
memset(buf, 0, size);
AST_LIST_TRAVERSE(&chan->varshead, variables, entries) {
- if(variables &&
- (var=ast_var_name(variables)) && (val=ast_var_value(variables)) &&
- !ast_strlen_zero(var) && !ast_strlen_zero(val)) {
+ if ((var = ast_var_name(variables)) && (val = ast_var_value(variables))) {
if (ast_build_string(&buf, &size, "%s=%s\n", var, val)) {
ast_log(LOG_ERROR, "Data Buffer Size Exceeded!\n");
break;