Re: fix another bug exposed by a compiler warning

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

 



On Mon, 2008-03-03 at 17:35 +0100, Jim Meyering wrote:

> -    virerr = __virErrorMsg(code, (errorMessage[0] ? errorMessage[0] : NULL));
> +    virerr = __virErrorMsg(code, (!errorMessage[0] ? errorMessage : NULL));

	That can't be right, surely? You mean:

  (errorMessage[0] ? errorMessage : NULL)

	right?

	(Otherwise you'd only ever be passing "" or NULL to virErrorMsg)

Cheers,
Mark.

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