]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Remove dead assignment, but why...
authorTravis Cross <tc@traviscross.com>
Wed, 30 Apr 2014 22:08:23 +0000 (22:08 +0000)
committerTravis Cross <tc@traviscross.com>
Wed, 30 Apr 2014 22:33:24 +0000 (22:33 +0000)
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

index 267661a90b1f588131a56858359762d77c4f821c..7220cb8ac65ac57987880b0ee90381470a536c83 100644 (file)
@@ -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 = "<Variable Expansion Permission Denied>";