From 72b1eb1cd3e6b07cdf93fb5f158cba21691b3052 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 14 May 2017 08:28:30 +0100 Subject: Correct typo in initialisation in bk_paper.c. If you initialise a structure field for the first time with += rather than =, that won't stop valgrind from saying it's uninitialised, and a good job too! --- bk_paper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bk_paper.c b/bk_paper.c index 7b7960e..0b73d39 100644 --- a/bk_paper.c +++ b/bk_paper.c @@ -2633,8 +2633,8 @@ static para_data *rule_paragraph(int indent, paper_conf *conf) /* * Better to break after a rule than before it */ - ldata->penalty_after += 100000; - ldata->penalty_before += -100000; + ldata->penalty_after = 100000; + ldata->penalty_before = -100000; pdata->first = pdata->last = ldata; pdata->outline_level = -1; -- cgit v1.1