[glib-openssl] Avoid redundant flag in g_file_test



commit d76eaf176c3eb0839d2d35ccac9e9a3d529fcf27
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 29 18:54:03 2017 +0100

    Avoid redundant flag in g_file_test
    
    If the file is regular it also exists

 tls/openssl/gtlsbackend-openssl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tls/openssl/gtlsbackend-openssl.c b/tls/openssl/gtlsbackend-openssl.c
index 187608f..f118c53 100644
--- a/tls/openssl/gtlsbackend-openssl.c
+++ b/tls/openssl/gtlsbackend-openssl.c
@@ -194,7 +194,7 @@ g_tls_backend_openssl_real_create_database (GTlsBackendOpenssl  *self,
   cert_path = g_build_filename (module_dir, "bin", "cert.pem", NULL);
   g_free (module_dir);
 
-  if (g_file_test (cert_path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
+  if (g_file_test (cert_path, G_FILE_TEST_IS_REGULAR))
     anchor_file = cert_path;
   else
     g_free (cert_path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]