[template-glib] eval: use args, not node when evaluating args



commit df431f454d2ea3e8994b26e5ba9ddfb80846d4c1
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 23 16:28:47 2017 -0700

    eval: use args, not node when evaluating args

 src/tmpl-expr-eval.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tmpl-expr-eval.c b/src/tmpl-expr-eval.c
index cb61477..c0c6dc0 100644
--- a/src/tmpl-expr-eval.c
+++ b/src/tmpl-expr-eval.c
@@ -898,7 +898,7 @@ tmpl_expr_gi_call_eval (TmplExprGiCall  *node,
 
       if (args->any.type == TMPL_EXPR_STMT_LIST)
         {
-          if (!tmpl_expr_eval_internal (((TmplExprSimple *)node)->left, scope, value, error))
+          if (!tmpl_expr_eval_internal (((TmplExprSimple *)args)->left, scope, value, error))
             goto cleanup;
 
           args = ((TmplExprSimple *)args)->right;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]