1
1

justify: initialize a variable before making use of its value

When the mark is off, initialize not just 'bot_x' but also 'top_x'.

This fixes https://savannah.gnu.org/bugs/?55898.

Bug existed since the justifying of a marked region was introduced,
four days ago, with commit f7f5514e.
Этот коммит содержится в:
David Lawrence Ramsey 2019-03-12 16:36:32 -05:00 коммит произвёл Benno Schulenberg
родитель 19a833c94e
Коммит 37be9b54ca

Просмотреть файл

@ -2115,6 +2115,7 @@ void do_justify(bool full_justify)
/* Start out at the first line of the paragraph. */
first_par_line = openfile->current;
last_par_line = openfile->current;
top_x = 0;
/* Set the number of lines to be pulled into the cutbuffer. */
if (full_justify)