[PATCH] API: prefer to use NULLSTR macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/libvirt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libvirt.c b/src/libvirt.c
index 05c0a87..8f94b11 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -10300,7 +10300,7 @@ virConnectFindStoragePoolSources(virConnectPtr conn,
                                  unsigned int flags)
 {
     VIR_DEBUG("conn=%p, type=%s, src=%s, flags=%x",
-              conn, type ? type : "", srcSpec ? srcSpec : "", flags);
+              conn, NULLSTR(type), NULLSTR(srcSpec), flags);
 
     virResetLastError();
 
-- 
1.7.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]