Skip to content
Commit 229defc9 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov
Browse files

Make sure no uninitialized values are used



I've got it if -O2 compilation option used.

 | cr-restore.c:1069:5: error: ‘ret’ may be used uninitialized in this function [-Werror=uninitialized]
 | sockets.c:1145:7: error: ‘sk’ may be used uninitialized in this function [-Werror=uninitialized]

In first case 'ret' indeed might be uninitialized, and
in second case "goto err" was called too early. Fix them both.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 3876cada
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment