From 4e4ed4b64ddacc22d2cab6e0e889bfbfc9314435 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 22 Oct 2024 17:47:16 +0200 Subject: [PATCH] label: add missing assert() to label_ops_set() --- src/basic/label.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/basic/label.c b/src/basic/label.c index 47d19678255..18f6214fad4 100644 --- a/src/basic/label.c +++ b/src/basic/label.c @@ -4,10 +4,13 @@ #include #include "label.h" +#include "macro.h" static const LabelOps *label_ops = NULL; int label_ops_set(const LabelOps *ops) { + assert(ops); + if (label_ops) return -EBUSY; -- 2.47.3