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>
This commit is contained in:
Philip Withnall 2017-05-01 19:34:51 +01:00
parent 82e31de04d
commit f5993c0e5d

View File

@ -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;