mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-14 02:27:56 +00:00
coverity: avoid possible null deref
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
0cad52a113
commit
513e1502c8
@ -2147,7 +2147,8 @@ static bool set_config_item_locked(struct lxc_container *c, const char *key, con
|
||||
c->lxc_conf = lxc_conf_init();
|
||||
if (!c->lxc_unexp_conf) {
|
||||
c->lxc_unexp_conf = lxc_conf_init();
|
||||
c->lxc_unexp_conf->unexpanded = true;
|
||||
if (c->lxc_unexp_conf)
|
||||
c->lxc_unexp_conf->unexpanded = true;
|
||||
}
|
||||
if (!c->lxc_conf || !c->lxc_unexp_conf)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user