Fix two unused variable warnings in ssl.c for Windows build.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 24 Nov 2016 19:05:02 +0000 (20:05 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 24 Nov 2016 19:05:58 +0000 (20:05 +0100)
src/common/ssl.c

index 2bb9820..7a34391 100644 (file)
@@ -227,6 +227,9 @@ const gchar *claws_ssl_get_cert_file(void)
 
 const gchar *claws_ssl_get_cert_dir(void)
 {
+       if (g_getenv("SSL_CERT_DIR"))
+               return g_getenv("SSL_CERT_DIR");
+#ifndef G_OS_WIN32
        const char *cert_dirs[]={
                "/etc/pki/tls/certs",
                "/etc/certs",
@@ -239,9 +242,6 @@ const gchar *claws_ssl_get_cert_dir(void)
                NULL};
        int i;
        
-       if (g_getenv("SSL_CERT_DIR"))
-               return g_getenv("SSL_CERT_DIR");
-#ifndef G_OS_WIN32
        for (i = 0; cert_dirs[i]; i++) {
                if (is_dir_exist(cert_dirs[i]))
                        return cert_dirs[i];