Fix vzctl exit code when not enough memory to parse options

Error returned from parse_*_opt() functions (when mod_make_opt() returns
NULL because of malloc() failure) goes all the way down to main() and
is used as an exit code of vzctl, so using -1 is not the right thing to do.

Change -1 to VZ_RESOURCE_ERROR.

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