From b09da58557d35552cb1ddefa206012fafcbaa95f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 3 May 2016 00:28:14 -0400 Subject: don't leave the outparam uninit if we bail out early --- src/screen.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3