diff options
author | Kenny Levinsen <kl@kl.wtf> | 2022-11-25 23:29:41 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-12-05 10:51:46 +0100 |
commit | bb0fd29252a9b4eb91358c30e8fd393a27d52d4d (patch) | |
tree | 3eebf538cdf2b54eb5795badbfe3ae9b46d440cf /util | |
parent | d9629181285c7e4589eed5608fc8bf29f311e45b (diff) |
addon: Allow NULL owner of addon
An owner is not always required or practical. Rather than have the user
set a bogus owner in these cases, allow the user to set a NULL owner.
Diffstat (limited to 'util')
-rw-r--r-- | util/addon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/addon.c b/util/addon.c index 10aed744..bebd14b9 100644 --- a/util/addon.c +++ b/util/addon.c @@ -18,7 +18,7 @@ void wlr_addon_set_finish(struct wlr_addon_set *set) { void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set, const void *owner, const struct wlr_addon_interface *impl) { - assert(owner && impl); + assert(impl); memset(addon, 0, sizeof(*addon)); struct wlr_addon *iter; wl_list_for_each(iter, &set->addons, link) { |