quirks: add more assertion to avoid API misusage

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-06-18 13:35:34 +10:00
parent 8aef361062
commit 2c4f963b18

View file

@ -1001,6 +1001,9 @@ quirks_init_subsystem(const char *data_path,
{
struct quirks_context *ctx = zalloc(sizeof *ctx);
assert(data_path);
assert(libinput);
ctx->refcount = 1;
ctx->log_handler = log_handler;
ctx->log_type = log_type;