resources: Use g_set_error_literal where appropriate

This commit is contained in:
Christian Persch 2012-01-14 21:13:03 +01:00
parent 870fc484d9
commit b717ef86ad

View File

@ -453,9 +453,8 @@ g_resource_file_query_info (GFile *file,
resource->path);
}
else
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"%s",
my_error->message);
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
my_error->message);
g_clear_error (&my_error);
return FALSE;
}
@ -554,9 +553,8 @@ g_resource_file_read (GFile *file,
resource->path);
}
else
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"%s",
my_error->message);
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
my_error->message);
g_clear_error (&my_error);
return NULL;
}