X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/ce5e0a3653779d6743f725c7ab3f982ce201af74..07d0323b84c7a00129cccca645db8d222378d33c:/terminal.c diff --git a/terminal.c b/terminal.c index 0ab14145..e846401e 100644 --- a/terminal.c +++ b/terminal.c @@ -1017,7 +1017,7 @@ static termline *lineptr(Terminal *term, int y, int lineno, int screen) } /* We assume that we don't screw up and retrieve something out of range. */ - if (line != NULL) { + if (line == NULL) { fatalbox("line==NULL in terminal.c\n" "lineno=%d y=%d w=%d h=%d\n" "count(scrollback=%p)=%d\n"