Skip to content

Commit

Permalink
Check for input redirection could have accessed a NULL pointer if we …
Browse files Browse the repository at this point in the history
…tried to check for keys during PDC_scr_open(). We do that in DOS and Windows.
  • Loading branch information
Bill-Gray committed Jan 30, 2023
1 parent 7f1e1bb commit 3a73630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vt/pdckbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static bool check_key( int *c)

if( PDC_resize_occurred)
return( TRUE);
if( SP->opaque->input_fd)
if( SP->opaque && SP->opaque->input_fd)
{
rval = !feof( SP->opaque->input_fd);
if( rval && c)
Expand Down

0 comments on commit 3a73630

Please sign in to comment.