From f3016c40e39c358d703fa11ae53822a60d0b42c6 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 29 Nov 2022 10:58:08 +0900 Subject: network: add missing assertion --- src/network/networkd-util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/network') 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) { \ -- cgit v1.2.1