mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
label: add missing assert() to label_ops_set()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user