summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--valexpr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/valexpr.cc b/valexpr.cc
index d1cc9322..6afd0805 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -1035,8 +1035,8 @@ value_expr_t * parse_value_term(std::istream& in, scope_t * scope,
unexpected(c, ']');
in.get(c);
- node.reset(new value_expr_t(value_expr_t::CONSTANT));
interval_t timespan(buf);
+ node.reset(new value_expr_t(value_expr_t::CONSTANT));
node->value = new value_t(timespan.first());
break;
}