From a034b14d640e28349fa5fde7647803e4b45d3ee5 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 21 Dec 2010 14:21:16 +0000 Subject: [PATCH] klocwork fix --- src/testing/testing_group.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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), -- 2.25.1