-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
the return value of gtk_init_with_args() is not checked:
- From the documentation:
Returns: TRUE if the GUI has been successfully initialized, FALSE otherwise.
So if it returns FALSE, the function should just print an error message
and return -1:
if (gtk_init_with_args (&argc, &argv, "file", options, NULL, NULL) != TRUE)
{
// print some error message, presumably an unknown option
return -1;
}
Regards,
Bastian
- --
,''`. Bastian Kleineidam
: :' : GnuPG Schlüssel
`. `' gpg --keyserver wwwkeys.pgp.net --recv-keys 32EC6F3E
`-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDQqhWeBwlBDLsbz4RAolHAJ93Z6u9nIcHielW+jTaWPqt8fcGbACgxLb2
hjUFyfLiIhwPN3IFIachWbU=
=yzLY
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]