mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
label: add missing assert() to label_ops_set()
This commit is contained in:
parent
3a7ae4ba62
commit
4e4ed4b64d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user