[template-glib] eval: ensure StmtList returns proper return value
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] eval: ensure StmtList returns proper return value
- Date: Tue, 9 Aug 2016 21:30:22 +0000 (UTC)
commit d1d5cf235fcda6631eeae0a9f702cedeecce046b
Author: Christian Hergert <chergert redhat com>
Date: Tue Aug 9 14:28:11 2016 -0700
eval: ensure StmtList returns proper return value
src/tmpl-expr-eval.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/tmpl-expr-eval.c b/src/tmpl-expr-eval.c
index a546f9e..32865f3 100644
--- a/src/tmpl-expr-eval.c
+++ b/src/tmpl-expr-eval.c
@@ -1071,8 +1071,7 @@ tmpl_expr_eval_internal (TmplExpr *node,
return TRUE;
case TMPL_EXPR_STMT_LIST:
- tmpl_expr_stmt_list_eval ((TmplExprSimple *)node, scope, return_value, error);
- break;
+ return tmpl_expr_stmt_list_eval ((TmplExprSimple *)node, scope, return_value, error);
case TMPL_EXPR_IF:
case TMPL_EXPR_WHILE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]