diff options
-rw-r--r-- | src/analyze/analyze-security.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index 8373819cd..1fc3c1e02 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -1533,6 +1533,7 @@ static int assess(const struct security_info *info, Table *overview_table, Analy return log_error_errno(r, "Failed to output table: %m"); } + assert(weight_sum > 0); exposure = DIV_ROUND_UP(badness_sum * 100U, weight_sum); for (i = 0; i < ELEMENTSOF(badness_table); i++) |