X11: Fix msghistory restore segfault

This commit is contained in:
Pasi Kallinen
2018-10-30 17:40:22 +02:00
parent 77c9930662
commit 312f7ccc10

View File

@@ -202,6 +202,9 @@ boolean init;
static int numlines = 0;
struct xwindow *wp = &window_list[WIN_MESSAGE];
if (init)
curr = (struct line_element *) 0;
if (!curr) {
curr = wp->mesg_information->head;
numlines = 0;