mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-21 02:40:05 +01:00
quirks: add more assertion to avoid API misusage (v2)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
14b7bb4726
commit
17c4609645
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue