diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-04-12 16:19:31 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-04-12 16:19:31 +0200 |
commit | 9ba40305642ac6b9e1f620512232fc64076d022d (patch) | |
tree | 0c1295a40c73407b3348aa4ef51d711ca0b98135 | |
parent | ba0363bd2aa101eae2a1cab97692f92bb9f1d20e (diff) | |
download | xdg-app-9ba40305642ac6b9e1f620512232fc64076d022d.tar.gz |
Fix crash
-rw-r--r-- | common/xdg-app-dir.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/xdg-app-dir.c b/common/xdg-app-dir.c index 6f64cb9..94bc726 100644 --- a/common/xdg-app-dir.c +++ b/common/xdg-app-dir.c @@ -548,9 +548,10 @@ xdg_app_dir_get_subpaths (XdgAppDir *self, if (g_error_matches (my_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) data = g_strdup (""); else - g_propagate_error (error, g_steal_pointer (&my_error)); - - return NULL; + { + g_propagate_error (error, g_steal_pointer (&my_error)); + return NULL; + } } lines = g_strsplit (data, "\n", 0); |