diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2017-05-13 22:57:19 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2017-05-13 23:02:38 +0300 |
commit | 1e898de96648fa9cb12653ed129c7ed2b0c26c72 (patch) | |
tree | a663b84453b027ade1318863fe96d7b5c91327df /src/nautilus-mime-actions.c | |
parent | 8480203d1a9a58b48322f031ec9a0c7fab73454b (diff) | |
download | nautilus-1e898de96648fa9cb12653ed129c7ed2b0c26c72.tar.gz |
mime-actions: check for valid error before dereferencing
After launching a URI, the code checks if the operation has been
canceled, but does not check if the error pointer is valid.
https://bugzilla.gnome.org/show_bug.cgi?id=781132
Diffstat (limited to 'src/nautilus-mime-actions.c')
-rw-r--r-- | src/nautilus-mime-actions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c index 2fc532077..ab69c6007 100644 --- a/src/nautilus-mime-actions.c +++ b/src/nautilus-mime-actions.c @@ -1540,7 +1540,7 @@ on_launch_default_for_uri (GObject *source_object, sandboxed = g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS); nautilus_launch_default_for_uri_finish (res, &error); - if (!sandboxed && error->code != G_IO_ERROR_CANCELLED) + if (!sandboxed && error != NULL && error->code != G_IO_ERROR_CANCELLED) { g_queue_push_tail (params->unhandled_uris, uri); } |