]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc_mount_auto_mounts: fix weirdness
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 3 Oct 2015 21:52:16 +0000 (21:52 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 5 Oct 2015 13:36:35 +0000 (14:36 +0100)
commit1167aae1466493abd7f456e246c0f81dcc75de39
tree3de7d66c76c3f121eb249d4fa13caa3840bb8c4d
parent9c106637e8ccbe5856dad9a6c1e6e229faf7b000
lxc_mount_auto_mounts: fix weirdness

The default_mounts[i].destination is never NULL except in the last
'stop here' entry.  Coverity doesn't know about that and so is spewing
a warning.  In any case, let's add a more stringent check in case someone
accidentally adds a NULL there later.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c