2739a98 util: mdev: Use a local variable instead of a direct pointer access

Authored and Committed by Erik Skultety 6 years ago
    util: mdev: Use a local variable instead of a direct pointer access
    
    Use a local variable to hold data, rather than accessing the pointer
    after calling virMediatedDeviceListAdd (therefore VIR_APPEND_ELEMENT).
    Although not causing an issue at the moment, this change is a necessary
    prerequisite for tweaking virMediatedDeviceListAdd in a separate patch,
    which will take a reference for the source pointer (instead of pointer
    value) and will clear it along the way.
    
    Signed-off-by: Erik Skultety <eskultet@redhat.com>
    Reviewed-by: Laine Stump <laine@laine.org>
    Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
    
        
file modified
+3 -2