1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

label: add missing assert() to label_ops_set()

This commit is contained in:
Lennart Poettering 2024-10-22 17:47:16 +02:00
parent 3a7ae4ba62
commit 4e4ed4b64d

View File

@ -4,10 +4,13 @@
#include <stddef.h>
#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;