While not strictly necessary, this fixes a false positive
leak in the tests.
https://bugzilla.gnome.org/show_bug.cgi?id=627423
gint code,
const gchar *message)
{
- GError *new;
-
if (err == NULL)
return;
- new = g_error_new_literal (domain, code, message);
if (*err == NULL)
- *err = new;
+ *err = g_error_new_literal (domain, code, message);
else
- g_warning (ERROR_OVERWRITTEN_WARNING, new->message);
+ g_warning (ERROR_OVERWRITTEN_WARNING, message);
}
/**