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:
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