git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ethdev: fix doc of flow action
[dpdk.git]
/
lib
/
graph
/
graph_stats.c
diff --git
a/lib/graph/graph_stats.c
b/lib/graph/graph_stats.c
index
30e295d
..
aa70929
100644
(file)
--- a/
lib/graph/graph_stats.c
+++ b/
lib/graph/graph_stats.c
@@
-119,8
+119,8
@@
stats_mem_init(struct cluster *cluster,
cluster_node_size = RTE_ALIGN(cluster_node_size, RTE_CACHE_LINE_SIZE);
stats = realloc(NULL, sz);
- memset(stats, 0, sz);
if (stats) {
+ memset(stats, 0, sz);
stats->fn = fn;
stats->cluster_node_size = cluster_node_size;
stats->max_nodes = 0;