summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafgen_parser.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 54aafe7..2340fd4 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -117,8 +117,7 @@ static inline void __init_new_packet_slot(struct packet *slot)
static inline void __init_new_counter_slot(struct packet_dyn *slot)
{
- slot->cnt = NULL;
- slot->clen = 0;
+ memset(slot, 0, sizeof(*slot);
}
static inline void __init_new_randomizer_slot(struct packet_dyn *slot)