mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
trim_reel_overhang: don't rely on assert()s
This commit is contained in:
parent
4a8d56cbfc
commit
ac4a53bf3b
@ -391,6 +391,9 @@ trim_reel_overhang(ncreel* r, nctablet* top, nctablet* bottom){
|
||||
assert(bottom);
|
||||
assert(bottom->p);
|
||||
int y;
|
||||
if(!top || !top->p || !bottom || !bottom->p){
|
||||
return -1;
|
||||
}
|
||||
//fprintf(stderr, "trimming: top %p bottom %p\n", top->p, bottom->p);
|
||||
ncplane_yx(top->p, &y, NULL);
|
||||
int ylen, xlen;
|
||||
|
Loading…
x
Reference in New Issue
Block a user