summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.cc b/format.cc
index 44307d05..4bbce62b 100644
--- a/format.cc
+++ b/format.cc
@@ -184,7 +184,7 @@ void format_t::format_elements(std::ostream& out,
case element_t::VALUE:
case element_t::TOTAL:
case element_t::VALUE_EXPR: {
- value_expr_t * expr;
+ value_expr_t * expr = NULL;
switch (elem->type) {
#ifdef NO_CLEANUP
case element_t::VALUE: expr = value_expr; break;