diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-29 10:58:08 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-30 10:18:03 +0900 |
commit | f3016c40e39c358d703fa11ae53822a60d0b42c6 (patch) | |
tree | 39ff9c25c6995f07e026a7bfd5cbbb59694f9e11 /src/network | |
parent | 862be54d572c8563a43796d36807f3e4df5a58c2 (diff) | |
download | systemd-f3016c40e39c358d703fa11ae53822a60d0b42c6.tar.gz |
network: add missing assertion
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-util.h b/src/network/networkd-util.h index e8c390196e..31ff4bc425 100644 --- a/src/network/networkd-util.h +++ b/src/network/networkd-util.h @@ -91,6 +91,7 @@ int network_config_state_to_string_alloc(NetworkConfigState s, char **ret); 0); \ } \ static inline bool name##_is_requesting(type *t) { \ + assert(t); \ return FLAGS_SET(t->state, NETWORK_CONFIG_STATE_REQUESTING); \ } \ static inline void name##_enter_configuring(type *t) { \ |