From f38ccbfb51eb50aa6982959f5e7d616bc6397b68 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 30 Apr 2014 22:08:23 +0000 Subject: [PATCH] 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. --- src/switch_channel.c | 2 -- 1 file changed, 2 deletions(-) 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 = "";