From 674791ed75c53fb18c5823c5807876bde4865616 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 7 Apr 2021 16:51:31 +0200 Subject: [PATCH] confile: make lxc_get_config() and lxc_get_config_net() always return non-NULL Introduce the concept of an unsupported config item. Signed-off-by: Christian Brauner --- src/lxc/confile.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 0a02b44b6..e26d47101 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -305,6 +305,14 @@ static struct lxc_config_net_t unsupported_config_net_key = { clr_config_unsupported_key, }; +static struct lxc_config_net_t unsupported_config_net_key = { + NULL, + false, + set_config_unsupported_key, + get_config_unsupported_key, + clr_config_unsupported_key, +}; + struct lxc_config_t *lxc_get_config_exact(const char *key) { size_t i; -- 2.47.3