summaryrefslogtreecommitdiff
path: root/gio/gportalsupport.c
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-05-01 19:34:51 +0100
committerPhilip Withnall <withnall@endlessm.com>2017-05-01 19:34:51 +0100
commitf5993c0e5d7405739f415187c90160040ff119ec (patch)
tree086aaab9275ecf4c711c7ddfbe26728b60fadca1 /gio/gportalsupport.c
parent82e31de04dcf4670f869dd2606244ffcadd7c9ac (diff)
downloadglib-f5993c0e5d7405739f415187c90160040ff119ec.tar.gz
gportalsupport: Fix compilation failure from previous commit
Igor says: Thith code did not path the compilation check. Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'gio/gportalsupport.c')
-rw-r--r--gio/gportalsupport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gio/gportalsupport.c b/gio/gportalsupport.c
index d6d6f413b..12b4ffdb5 100644
--- a/gio/gportalsupport.c
+++ b/gio/gportalsupport.c
@@ -27,12 +27,14 @@ static gboolean network_available;
static void
read_flatpak_info (void)
{
+ const gchar *path = "/.flatpak-info";
+
if (flatpak_info_read)
return;
flatpak_info_read = TRUE;
- if (g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS))
+ if (g_file_test (path, G_FILE_TEST_EXISTS))
{
GKeyFile *keyfile;