quirks: add more assertion to avoid API misusage (v2)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-06-19 13:07:12 +10:00
parent 14b7bb4726
commit 17c4609645

View file

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