store_devnodes: fix NULL deref

As pointed out by Linas Žilinskas in bug #3228,
we should check name for being non-NULL here.

https://bugzilla.openvz.org/3228

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed