summaryrefslogtreecommitdiff
path: root/src/core/wee-network.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-05-02 18:21:58 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-05-02 18:21:58 +0200
commit4616ca981ed37dde25105e7ebd5d9d1b7717a022 (patch)
tree3b61407ece3c31c662268181e5e3c03db7d79f06 /src/core/wee-network.c
parent1836b40a4a7866200a98e5aa7cb18e41ed7ae0b5 (diff)
downloadweechat-4616ca981ed37dde25105e7ebd5d9d1b7717a022.zip
Add function "string_expand_home" in plugin API, fix bug with replacement of home in paths
Diffstat (limited to 'src/core/wee-network.c')
-rw-r--r--src/core/wee-network.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/wee-network.c b/src/core/wee-network.c
index e3e42eb0c..e77862304 100644
--- a/src/core/wee-network.c
+++ b/src/core/wee-network.c
@@ -79,8 +79,7 @@ network_init ()
gnutls_global_init ();
gnutls_certificate_allocate_credentials (&gnutls_xcred);
- ca_path = string_replace (CONFIG_STRING(config_network_gnutls_ca_file),
- "~", getenv ("HOME"));
+ ca_path = string_expand_home (CONFIG_STRING(config_network_gnutls_ca_file));
if (ca_path)
{
ca_path2 = string_replace (ca_path, "%h", weechat_home);