ncdirect_clear(): don't deref null clear

This commit is contained in:
nick black 2020-02-24 18:56:09 -05:00
parent 0a1f36cbfa
commit fddff356a4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -968,7 +968,7 @@ err:
int ncdirect_clear(ncdirect* nc){
if(!nc->clear){
// FIXME scroll output off the screen
return -1; // FIXME scroll output off the screen
}
return term_emit("clear", nc->clear, nc->ttyfp, true);
}