Re: [PATCH] bridge: Fix uninitialized variable

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

 



> > @@ -715,7 +715,7 @@ brDelInetAddress(brControl *ctl ATTRIBUTE_UNUSED,
> >                    virSocketAddr *addr,
> >                    unsigned int prefix)
> >   {
> > -    virCommandPtr cmd;
> > +    virCommandPtr cmd = NULL;
> >       char *addrstr;
> >       int ret = -1;
> >
> 
> Wow! How did I miss *that*?!?
> 
> Thanks for catching it!
> 
> (Beyond that - what options are you using that it didn't build?

I always build with --enable-compile-warnings=error so any compiler warning
results in build failure. No special options beyond that.

Jirka

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