From ee0347d33decb06117b560f9a24dc2b35e8f5c6c Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 1 Sep 2010 10:59:11 +0000 Subject: [PATCH] fixed: klocwork bug #305 --- src/transport/test_plugin_transport_https.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/transport/test_plugin_transport_https.c b/src/transport/test_plugin_transport_https.c index 6e33a1675..caf727105 100644 --- a/src/transport/test_plugin_transport_https.c +++ b/src/transport/test_plugin_transport_https.c @@ -1217,10 +1217,8 @@ run (void *cls, "KEY_FILE", &key_file); } - else - { + if (key_file == NULL) GNUNET_asprintf(&key_file,"https.key"); - } if (0 == stat (key_file, &sbuf )) { @@ -1239,10 +1237,8 @@ run (void *cls, "CERT_FILE", &cert_file); } - else - { + if (cert_file == NULL) GNUNET_asprintf(&cert_file,"https.cert"); - } if (0 == stat (cert_file, &sbuf )) { -- 2.25.1