vzctl set --devices: fix SIGSEGV

This is caused by the commit c2a48a7e. Note add_dev_param() is called
from parse_devices_str() in which name is not set, so we shouldn't
blindly use strdup().

https://bugzilla.openvz.org/3189

Reported-by: Devon <devon.b@virtualcomplete.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed