[Libosinfo] [PATCH] loader: Negative loop bound

Christophe Fergeau cfergeau at redhat.com
Mon May 26 08:52:02 UTC 2014


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()?

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.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20140526/87532116/attachment.sig>


More information about the Libosinfo mailing list