From: Matthias Wachs Date: Wed, 1 Sep 2010 10:59:11 +0000 (+0000) Subject: fixed: klocwork bug #305 X-Git-Tag: initial-import-from-subversion-38251~20494 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee0347d33decb06117b560f9a24dc2b35e8f5c6c;p=oweals%2Fgnunet.git fixed: klocwork bug #305 --- 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 )) {