void
xml_g_set_error (xml_GError **err, gint code, const gchar *format, ...)
{
GError * def;
va_list args;
if (err == NULL)
return;
va_start (args, format);
def = xml_g_error_new_valist (code, format, args);
va_end (args);
if (*err)
{
g_warning (OVERWRITTEN_MESSAGE);
xml_g_error_print (*err);
xml_g_error_free (*err);
} |
*err = def;
} |
|