forked from external/yambar
bar: deal with NULL exposables
Allow modules to return NULL in begin_expose()
This commit is contained in:
parent
2bb70c6fcb
commit
4d05947985
2 changed files with 14 additions and 4 deletions
3
module.c
3
module.c
|
@ -23,6 +23,7 @@ struct exposable *
|
|||
module_begin_expose(struct module *mod)
|
||||
{
|
||||
struct exposable *e = mod->content(mod);
|
||||
e->begin_expose(e);
|
||||
if (e != NULL)
|
||||
e->begin_expose(e);
|
||||
return e;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue