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

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@redhat.com> 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

On Thu, Feb 05, 2009 at 06:59:05PM +0100, Jim Meyering wrote:
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@redhat.com> 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. ---
ACK Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (2)
-
Daniel P. Berrange
-
Jim Meyering