projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c18c79a
)
-fix coverity
author
Bart Polot
<bart@net.in.tum.de>
Mon, 13 Feb 2012 16:21:23 +0000
(16:21 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Mon, 13 Feb 2012 16:21:23 +0000
(16:21 +0000)
src/testing/testing_group.c
patch
|
blob
|
history
diff --git
a/src/testing/testing_group.c
b/src/testing/testing_group.c
index 377f4d550bbd042d8cd6ed1c85ffeb3eb5449a24..ae08136e352d4275f7fd932f2dcc771b6cae3645 100644
(file)
--- a/
src/testing/testing_group.c
+++ b/
src/testing/testing_group.c
@@
-5183,7
+5183,10
@@
GNUNET_TESTING_get_statistics (struct GNUNET_TESTING_PeerGroup *pg,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Retrieving stats from %u total instances.\n", total_count);
- stats_context->total = total_count;
+ if (0 != total_count)
+ stats_context->total = total_count;
+ else
+ GNUNET_free (stats_context);
if (stats_list != NULL)
{
pos = stats_list;