• J
    vsh: Properly initialize res · bd93ba64
    John Ferlan 提交于
    The 'res' variable was only being initialized to NULL in the
    if (!state) path; however, that path never used res and evenutally
    res is assigned one of two results based on a pair of if then else if
    conditions. If for some reason neither of those paths was taken and
    the (!state) path wasn't taken, then 'res' would be indeterminate.
    
    Found by Coverity, probably a false positive based on code paths, but
    better safe than sorry for the future.
    Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
    bd93ba64
vsh.c 85.9 KB