X11: Fix msghistory restore segfault
This commit is contained in:
@@ -202,6 +202,9 @@ boolean init;
|
|||||||
static int numlines = 0;
|
static int numlines = 0;
|
||||||
struct xwindow *wp = &window_list[WIN_MESSAGE];
|
struct xwindow *wp = &window_list[WIN_MESSAGE];
|
||||||
|
|
||||||
|
if (init)
|
||||||
|
curr = (struct line_element *) 0;
|
||||||
|
|
||||||
if (!curr) {
|
if (!curr) {
|
||||||
curr = wp->mesg_information->head;
|
curr = wp->mesg_information->head;
|
||||||
numlines = 0;
|
numlines = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user