diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-06-19 13:07:12 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-06-19 13:07:24 +1000 |
commit | 17c460964507e41d9271f14661b4311389f14b51 (patch) | |
tree | e00791bd2d248511773c39cb60f94822c7da155a | |
parent | 14b7bb472612673ab550b8559571f3c07061f197 (diff) |
quirks: add more assertion to avoid API misusage (v2)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/quirks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quirks.c b/src/quirks.c index b688d35f..75fb761d 100644 --- a/src/quirks.c +++ b/src/quirks.c @@ -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; |