From: Travis Cross Date: Wed, 30 Apr 2014 22:08:23 +0000 (+0000) Subject: Remove dead assignment, but why... X-Git-Tag: v1.5.12~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f38ccbfb51eb50aa6982959f5e7d616bc6397b68;p=thirdparty%2Ffreeswitch.git Remove dead assignment, but why... This assignment isn't doing anything, so it safe to remove it, but there remains the question of whether there could have been some actually necessary intention behind this line. --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 267661a90b..7220cb8ac6 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -3919,8 +3919,6 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables_check(switch_channel_t *c idx = atoi(ptr); } - if (!sub_val) sub_val = vname; - if ((sub_val = (char *) switch_channel_get_variable_dup(channel, vname, SWITCH_TRUE, idx))) { if (var_list && !switch_event_check_permission_list(var_list, vname)) { sub_val = "";