qemu: Don't crash in qemuDomainOpenChannel()
qemu: Don't crash in qemuDomainOpenChannel()

The problem here was that when opening a channel, we were checking
whether the channel given is alias (can't be NULL for running domain) or
it's name, which can be NULL (for example with spicevmc).  In case of
such domain qemuDomainOpenChannel() made the daemon crash.
STREQ_NULLABLE() is safe to use since the code in question is wrapped in
"if (name)" and is more readable, so use that instead of checking for
non-NULL "vm->def->channels[i]->target.name".

Signed-off-by: Martin Kletzander <e82f23e74d43760279ebcc505dac4ae70d5627d0@redhat.com>

rlaager/libvirt,VenkatDatta/libvirt,datto/libvirt,nertpinx/libvirt,jfehlig/libvirt,datto/libvirt,taget/libvirt,fabianfreyer/libvirt,agx/libvirt,agx/libvirt,crobinso/libvirt,eskultety/libvirt,datto/libvirt,taget/libvirt,VenkatDatta/libvirt,rlaager/libvirt,eskultety/libvirt,libvirt/libvirt,jfehlig/libvirt,nertpinx/libvirt,shugaoye/libvirt,crobinso/libvirt,andreabolognani/libvirt,libvirt/libvirt,olafhering/libvirt,andreabolognani/libvirt,shugaoye/libvirt,jfehlig/libvirt,taget/libvirt,crobinso/libvirt,agx/libvirt,jardasgit/libvirt,rlaager/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,eskultety/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,jfehlig/libvirt,zippy2/libvirt,shugaoye/libvirt,rlaager/libvirt,fabianfreyer/libvirt,agx/libvirt,eskultety/libvirt,jardasgit/libvirt,eskultety/libvirt,crobinso/libvirt,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,zippy2/libvirt,fabianfreyer/libvirt,rlaager/libvirt,datto/libvirt,andreabolognani/libvirt,nertpinx/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,datto/libvirt,libvirt/libvirt,olafhering/libvirt,shugaoye/libvirt,taget/libvirt,VenkatDatta/libvirt,zippy2/libvirt,VenkatDatta/libvirt,taget/libvirt,zippy2/libvirt,nertpinx/libvirt,agx/libvirt,jardasgit/libvirt,olafhering/libvirt