From: Lennart Poettering Date: Tue, 22 Oct 2024 15:47:16 +0000 (+0200) Subject: label: add missing assert() to label_ops_set() X-Git-Tag: v257-rc1~161^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4ed4b64ddacc22d2cab6e0e889bfbfc9314435;p=thirdparty%2Fsystemd.git label: add missing assert() to label_ops_set() --- 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;