Commit b717ef86 authored by Christian Persch's avatar Christian Persch

resources: Use g_set_error_literal where appropriate

parent 870fc484
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment