diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-12-21 14:21:16 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-12-21 14:21:16 +0000 |
commit | a034b14d640e28349fa5fde7647803e4b45d3ee5 (patch) | |
tree | 62fdfc86ac6498e3d07665e344ffde721cc9ad3f | |
parent | dbef81a62985492402945501fbce95b9af7827ad (diff) |
klocwork fix
-rw-r--r-- | src/testing/testing_group.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index 0595294a2d..4163c3d2ea 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), |