mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[nctree_create] check for NULL ncplane
This commit is contained in:
parent
4fa0857311
commit
57f8dc4390
@ -123,6 +123,9 @@ nctree_inner_create(ncplane* n, const struct nctree_options* opts){
|
||||
}
|
||||
|
||||
nctree* nctree_create(ncplane* n, const struct nctree_options* opts){
|
||||
if(n == NULL){
|
||||
return -1;
|
||||
}
|
||||
notcurses* nc = ncplane_notcurses(n);
|
||||
if(opts->flags){
|
||||
logwarn(nc, "Passed invalid flags 0x%016jx\n", (uint64_t)opts->flags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user