]> 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 10:51:59 +0000 (11:51 +0100)
commitcc4fd5064bcb9d1c3daaaf6753ee2a76caacc74d
tree151ddc18e2c9638eba09355f03c28b5702340e30
parent2c79e91b4b65d93685a8f6e28b8899b29a3a6307
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