diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-29 20:27:02 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-29 20:29:35 +0200 |
commit | 69d57aaf332268e3dea8795c2b9f091059f3b5b4 (patch) | |
tree | 370d6673390774eb190792c66555ab80389eda09 /libseat/libseat.c | |
parent | de96b3938b19b091e16a757b9cae3b1909ee1ea0 (diff) |
libseat: Assert that listener is non-NULL
Diffstat (limited to 'libseat/libseat.c')
-rw-r--r-- | libseat/libseat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libseat/libseat.c b/libseat/libseat.c index d7ab361..11d3786 100644 --- a/libseat/libseat.c +++ b/libseat/libseat.c @@ -32,7 +32,7 @@ static const struct named_backend impls[] = { #endif struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void *data) { - if (listener == NULL) { + if (listener == NULL || listener->enable_seat == NULL || listener->disable_seat == NULL) { errno = EINVAL; return NULL; } |