[Commits] [SCM] claws branch, master, updated. 3.14.1-21-g0d330cb

ticho at claws-mail.org ticho at claws-mail.org
Thu Nov 24 20:06:06 CET 2016


The branch, master has been updated
       via  0d330cb779f940d0ccc0848ca64cf8ff0c95d810 (commit)
      from  4d7461d72788db31c4c7e43d0911a8e9d6155041 (commit)

Summary of changes:
 src/common/ssl.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 0d330cb779f940d0ccc0848ca64cf8ff0c95d810
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Nov 24 20:05:02 2016 +0100

    Fix two unused variable warnings in ssl.c for Windows build.

diff --git a/src/common/ssl.c b/src/common/ssl.c
index 2bb9820..7a34391 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -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];

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list