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:Do you have more details about the scenario in which it occurs? It seems
> osinfo_loader_nodeset() can return -1 without set an error
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