From: Charlie Brej Date: Wed, 24 Mar 2010 13:35:13 +0000 (+0000) Subject: [script] Use a pre computed value rather than accessing directly X-Git-Tag: 0.8.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=669c2dcc0af6ab5d0a599353a0fb50e89d75266a;p=thirdparty%2Fplymouth.git [script] Use a pre computed value rather than accessing directly The name_exp was already set to the thing we wanted, so use that. Less confusing since other sections use it. --- diff --git a/src/plugins/splash/script/script-execute.c b/src/plugins/splash/script/script-execute.c index 7f16dd4e..f986957e 100644 --- a/src/plugins/splash/script/script-execute.c +++ b/src/plugins/splash/script/script-execute.c @@ -323,7 +323,7 @@ static script_obj_t *script_evaluate_func (script_state_t *state, } else { - func_obj = script_evaluate (state, exp->data.function_exe.name); + func_obj = script_evaluate (state, name_exp); } ply_list_t *parameter_expressions = exp->data.function_exe.parameters;