From: Christian Dywan Date: Fri, 23 Jan 2009 20:43:28 +0000 (+0100) Subject: Merge two g_file_test calls into one X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2083433739aedc20266d80d5e8b5455584d1a353;p=midori Merge two g_file_test calls into one --- diff --git a/midori/sokoke.c b/midori/sokoke.c index 543b2630..e0f29b97 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -142,8 +142,7 @@ sokoke_magic_uri (const gchar* uri, if (g_path_is_absolute (uri)) return g_strconcat ("file://", uri, NULL); /* Construct an absolute path if the file is relative */ - if (g_file_test (uri, G_FILE_TEST_EXISTS) - && g_file_test (uri, G_FILE_TEST_IS_REGULAR)) + if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) { current_dir = g_get_current_dir (); result = g_strconcat ("file://", current_dir,