Re: [PATCH] loader: Negative loop bound

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

 






On Mon, May 26, 2014 at 10:52 AM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
On Sat, May 24, 2014 at 02:49:39AM +0200, Fabiano Fidêncio wrote:
> osinfo_loader_nodeset() can return -1 without set an error

Do you have more details about the scenario in which it occurs? It seems
this can only happen happening through one of the
g_return_val_if_fail()?

You're right, this is the only possible scenario.
 
g_return_if_fail() are used to flag programmers' errors, after such an
error is reported, behaviour is undefined, so we generally don't try to
handle them.

I tried to handle the g_return_var_if_fail().
If we generally don't try to handle then, just ignore the patch.
 
Best Regards,
--
Fabiano Fidêncio
_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux