summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/report.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h
index 99b8781b..e4eaeaaa 100644
--- a/src/report.h
+++ b/src/report.h
@@ -735,7 +735,7 @@ public:
OPTION_(report_t, percent, DO() { // -%
parent->HANDLER(total_)
.set_expr(string("--percent"),
- "is_account&parent&parent.total&percent(total, parent.total)");
+ "((is_account&parent&parent.total)?percent(total, parent.total):0");
});
OPTION__