From: Nathan S. Evans Date: Tue, 21 Dec 2010 14:21:16 +0000 (+0000) Subject: klocwork fix X-Git-Tag: initial-import-from-subversion-38251~19471 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a034b14d640e28349fa5fde7647803e4b45d3ee5;p=oweals%2Fgnunet.git klocwork fix --- diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index 0595294a2..4163c3d2e 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c @@ -842,10 +842,11 @@ update_config (void *cls, "/tmp/test-service-%s-%u", section, ctx->upnum++); value = uval; } - else if (GNUNET_YES == + else if ((GNUNET_YES == GNUNET_CONFIGURATION_get_value_number (ctx->orig, "testing", per_host_variable, - &num_per_host)) + &num_per_host)) && (num_per_host > 0)) + { GNUNET_snprintf (uval, sizeof (uval),