• Cyrill Gorcunov's avatar
    Make sure no uninitialized values are used · 229defc9
    Cyrill Gorcunov authored
    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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    229defc9
sockets.c 24.5 KB