uses 0 as a GError domain, which is not valid
Submitted by Simon McVittie
Assigned to mal..@..db.org
Link to original bug (#660563)
Description
% git grep 'g_set_error.*0' doc/C/data_validation.xml: g_set_error (&error, 0, 0, "NULL values are not allowed!"); doc/C/data_validation.xml: g_set_error (&error, 0, 0, "Value sould be inferior to 5"); doc/C/examples/blobtest.c: g_set_error (error, 0, 0, libgda-report/DocBook/gda-report-docbook-document.c:
g_set_error (error, 0, 0,
... and many more. 0 is not considered to be a valid domain for GErrors (it stringifies to NULL). You should use a properly set up GError domain and code, or if that's too difficult, something uselessly generic but valid, like (G_IO_ERROR, G_IO_ERROR_FAILED).
See also Bug #660371.
Version: 4.99.x