forked from Mirrors/flatpak-builder
Don't leak an ignored error
Runtime metadata is optional, so don't leak an error we get when the file is not found. Properly ignore it by passing NULL as the error.tingping/wmclass
parent
a4a25a4a64
commit
45aabf06d9
|
@ -324,7 +324,7 @@ xdg_app_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
|
|||
g_debug ("Using runtime in %s", path);
|
||||
|
||||
runtime_metadata = g_file_get_child (runtime_deploy, "metadata");
|
||||
if (g_file_load_contents (runtime_metadata, cancellable, &runtime_metadata_contents, &runtime_metadata_size, NULL, error))
|
||||
if (g_file_load_contents (runtime_metadata, cancellable, &runtime_metadata_contents, &runtime_metadata_size, NULL, NULL))
|
||||
{
|
||||
|
||||
runtime_metakey = g_key_file_new ();
|
||||
|
|
Loading…
Reference in New Issue