diff options
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; } |