mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:28:27 +00:00
coverity: #1440391
Dereference null return value Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
c837120231
commit
637d38f246
@ -3489,8 +3489,10 @@ static int get_config_hooks(const char *key, char *retv, int inlen,
|
||||
return -1;
|
||||
|
||||
subkey = strchr(subkey + 1, '.');
|
||||
if (!subkey)
|
||||
return -1;
|
||||
subkey++;
|
||||
if (!*subkey)
|
||||
if (*subkey == '\0')
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < NUM_LXC_HOOKS; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user