degesch: fix a minor bug in buffer_merge()

The pointer to the last item in the linked list wasn't always fixed,
although nothing really touched it afterwards.
This commit is contained in:
Přemysl Eric Janouch 2018-01-08 21:45:53 +01:00
parent 4627ee82dd
commit 099a49e6d5
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 2 deletions

View File

@ -4221,8 +4221,7 @@ buffer_merge (struct app_context *ctx,
merged->lines = NULL;
else if (start->prev)
start->prev->next = NULL;
if (start == merged->lines_tail)
merged->lines_tail = start->prev;
merged->lines_tail = start->prev;
merged->lines_count -= n;
// And append them to current lines in the buffer