mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 18:10:06 +01:00
quirks: add more assertion to avoid API misusage
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8aef361062
commit
2c4f963b18
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue