don't print uninitialized in debug diagnostic

* qemud/mdns.c (libvirtd_mdns_timeout_new): Don't use local, t,
uninitialized.
This commit is contained in:
Jim Meyering 2009-02-09 15:38:06 +00:00
parent b92d7e761c
commit 3557096d44
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Feb 9 10:13:28 +0100 2009 Jim Meyering <meyering@redhat.com>
don't print uninitialized in debug diagnostic
* qemud/mdns.c (libvirtd_mdns_timeout_new): Don't use local, t,
uninitialized.
Mon Feb 9 16:25:52 +0100 2009 Jim Meyering <meyering@redhat.com>
avoid two test failures induced by today's error-reporting changes

View File

@ -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;