ct_env_create(): fix alloca() result check

1. Obviously, checking that the result of alloca() + stack_size
is not NULL is not gonna work, in case alloca() returned NULL
it will be equal to stack_size. So move the increment to after the check
for NULL.

2 It makes sense to check for NULL right at the beginning of the
function, because otherwise it would be useless to do anything.

3. alloca(3) man page doesn't mention errno, so we should not use it for
logger().

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