gio: Fix for -Wformat-security

This commit is contained in:
Rico Tzschichholz 2012-01-13 23:18:01 +01:00
parent 8735f53ae4
commit e3fe256692

View File

@ -454,6 +454,7 @@ g_resource_file_query_info (GFile *file,
}
else
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"%s",
my_error->message);
g_clear_error (&my_error);
return FALSE;
@ -554,6 +555,7 @@ g_resource_file_read (GFile *file,
}
else
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"%s",
my_error->message);
g_clear_error (&my_error);
return NULL;