c4cfc0d qemu: Resolve Coverity UNINIT

Authored and Committed by John Ferlan 8 years ago
    qemu: Resolve Coverity UNINIT
    
    Coverity complained that 'vm' wasn't initialized before jumping to
    cleanup: and calling virDomainObjEndAPI if the VIR_STRDUP fails.
    So I initialized vm = NULL and also moved the VIR_STRDUP closer to
    usage and used endjob for goto. Lots of other reasons for failures.
    
        
file modified
+4 -4