From: Matthias Wachs Date: Tue, 21 Dec 2010 13:49:43 +0000 (+0000) Subject: fix bug from klocwork X-Git-Tag: initial-import-from-subversion-38251~19487 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a226ed248616fffd30b13ea9b915acdc6dedc45;p=oweals%2Fgnunet.git fix bug from klocwork --- diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 5b070f48b..4da5ab48d 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c @@ -801,7 +801,7 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","tcp","symmetric"); } - if (is_udp == GNUNET_YES) + else if (is_udp == GNUNET_YES) { if (is_asymmetric_recv_constant == GNUNET_YES) GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","asymmetric_recv_constant"); @@ -810,7 +810,7 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","symmetric"); } - if (is_http == GNUNET_YES) + else if (is_http == GNUNET_YES) { if (is_asymmetric_recv_constant == GNUNET_YES) GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","asymmetric_recv_constant"); @@ -819,7 +819,7 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","http","symmetric"); } - if (is_https == GNUNET_YES) + else if (is_https == GNUNET_YES) { if (is_asymmetric_recv_constant == GNUNET_YES) GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","asymmetric_recv_constant"); @@ -828,6 +828,10 @@ main (int argc, char *argv[]) else GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","https","symmetric"); } + else + { + GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","noplugin","none"); + } GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer1"); GNUNET_DISK_directory_remove ("/tmp/test_quota_compliance_peer2");