mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
ncdirect_clear(): don't deref null clear
This commit is contained in:
parent
0a1f36cbfa
commit
fddff356a4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user