[asterisk-commits] seanbright: branch seanbright/resolve-shadow-warnings r119461 - /team/seanbri...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 30 18:33:22 CDT 2008
Author: seanbright
Date: Fri May 30 18:33:22 2008
New Revision: 119461
URL: http://svn.digium.com/view/asterisk?view=rev&rev=119461
Log:
Help this branch build again.
Modified:
team/seanbright/resolve-shadow-warnings/apps/app_forkcdr.c
Modified: team/seanbright/resolve-shadow-warnings/apps/app_forkcdr.c
URL: http://svn.digium.com/view/asterisk/team/seanbright/resolve-shadow-warnings/apps/app_forkcdr.c?view=diff&rev=119461&r1=119460&r2=119461
==============================================================================
--- team/seanbright/resolve-shadow-warnings/apps/app_forkcdr.c (original)
+++ team/seanbright/resolve-shadow-warnings/apps/app_forkcdr.c Fri May 30 18:33:22 2008
@@ -159,8 +159,10 @@
} else
opts[OPT_ARG_VARSET] = 0;
- if (!ast_strlen_zero(data))
- ast_set2_flag(chan->cdr, ast_test_flag(&flags, OPT_KEEPVARS), AST_CDR_FLAG_KEEP_VARS);
+ if (!ast_strlen_zero(data)) {
+ int keepvars = ast_test_flag(&flags, OPT_KEEPVARS) ? 1 : 0;
+ ast_set2_flag(chan->cdr, keepvars, AST_CDR_FLAG_KEEP_VARS);
+ }
ast_cdr_fork(chan, flags, opts[OPT_ARG_VARSET]);
More information about the asterisk-commits
mailing list