[libvirt] [PATCH] don't print uninitialized in debug diagnostic

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

 



FYI, this was caught by bleeding-edge gcc (built from git just this morning).
There are a few other problems, too.

>From a3149ae688f4f7eac3ee001f8f4d5997d3f23eeb Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@xxxxxxxxxx>
Date: Thu, 5 Feb 2009 18:57:07 +0100
Subject: [PATCH] don't print uninitialized in debug diagnostic

* qemud/mdns.c (libvirtd_mdns_timeout_new): Don't use local, t,
uninitialized.
---
 qemud/mdns.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemud/mdns.c b/qemud/mdns.c
index b13a6e5..ae6ff08 100644
--- a/qemud/mdns.c
+++ b/qemud/mdns.c
@@ -309,7 +309,7 @@ static AvahiTimeout *libvirtd_mdns_timeout_new(const AvahiPoll *api ATTRIBUTE_UN
     AvahiTimeout *t;
     struct timeval now;
     long long nowms, thenms, timeout;
-    AVAHI_DEBUG("Add timeout %p TV %p", t, tv);
+    AVAHI_DEBUG("Add timeout TV %p", tv);
     if (VIR_ALLOC(t) < 0)
         return NULL;

--
1.6.1.2.511.gc5d3f

--
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]