• S
    lxc: Fix coverity findings · f74471de
    Stefan Berger 提交于
    Error: UNINIT:
    /libvirt/src/lxc/lxc_driver.c:1412:
    var_decl: Declaring variable "fd" without initializer.
    /libvirt/src/lxc/lxc_driver.c:1460:
    uninit_use_in_call: Using uninitialized value "fd" when calling "virFileClose".
    /libvirt/src/util/virfile.c:50:
    read_parm: Reading a parameter value.
    
    Error: DEADCODE:
    /libvirt/src/lxc/lxc_controller.c:960:
    dead_error_condition: On this path, the condition "ret == 4" cannot be true.
    /libvirt/src/lxc/lxc_controller.c:959:
    at_most: After this line, the value of "ret" is at most -1.
    /libvirt/src/lxc/lxc_controller.c:959:
    new_values: Noticing condition "ret < 0".
    /libvirt/src/lxc/lxc_controller.c:961:
    dead_error_line: Execution cannot reach this statement "continue;".
    
    Error: UNINIT:
    /libvirt/src/lxc/lxc_controller.c:1104:
    var_decl: Declaring variable "consoles" without initializer.
    /libvirt/src/lxc/lxc_controller.c:1237:
    uninit_use: Using uninitialized value "consoles".
    f74471de
lxc_driver.c 112.9 KB