summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-05-14 08:28:30 +0100
committerSimon Tatham <anakin@pobox.com>2017-05-14 08:44:15 +0100
commit72b1eb1cd3e6b07cdf93fb5f158cba21691b3052 (patch)
tree6966247bc478a3789c81146a100c20ea996dc983
parentc00d1c3b6003dbbb72439de0ebdb4a93c8763f65 (diff)
downloadhalibut-72b1eb1cd3e6b07cdf93fb5f158cba21691b3052.zip
halibut-72b1eb1cd3e6b07cdf93fb5f158cba21691b3052.tar.gz
halibut-72b1eb1cd3e6b07cdf93fb5f158cba21691b3052.tar.bz2
halibut-72b1eb1cd3e6b07cdf93fb5f158cba21691b3052.tar.xz
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!
-rw-r--r--bk_paper.c4
1 files 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;