summaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 8da88d6..3faa070 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -912,6 +912,7 @@ static void vt100_screen_get_string(
*lenp = 0;
if (end->row < start->row || (end->row == start->row && end->col <= start->col)) {
+ *strp = NULL;
return;
}