mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 09:39:03 -04:00
[nctree] eliminate tautological pointer compare
This commit is contained in:
parent
46d70602c5
commit
3474134f23
@ -123,9 +123,6 @@ nctree_inner_create(ncplane* n, const struct nctree_options* opts){
|
|||||||
}
|
}
|
||||||
|
|
||||||
nctree* nctree_create(ncplane* n, const struct nctree_options* opts){
|
nctree* nctree_create(ncplane* n, const struct nctree_options* opts){
|
||||||
if(n == NULL){
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
notcurses* nc = ncplane_notcurses(n);
|
notcurses* nc = ncplane_notcurses(n);
|
||||||
if(opts->flags){
|
if(opts->flags){
|
||||||
logwarn(nc, "Passed invalid flags 0x%016jx\n", (uint64_t)opts->flags);
|
logwarn(nc, "Passed invalid flags 0x%016jx\n", (uint64_t)opts->flags);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user