From b65f365474e6e861275cdab493fd1ad62b98933b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 19 Jan 2005 12:43:06 -0500 Subject: [PATCH] fix unserialization of PacketFifo dev/pktfifo.cc: fix unserialization. calling resize on a list just sticks uninitialized garbage into the list. --HG-- extra : convert_revision : 1cbff596dd0b88560e23b9368ec75a7369beb9d9 --- dev/pktfifo.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/dev/pktfifo.cc b/dev/pktfifo.cc index ae82123cf..79a96cc1d 100644 --- a/dev/pktfifo.cc +++ b/dev/pktfifo.cc @@ -60,7 +60,6 @@ PacketFifo::unserialize(const string &base, Checkpoint *cp, paramIn(cp, section, base + ".packets", fifosize); fifo.clear(); - fifo.resize(fifosize); for (int i = 0; i < fifosize; ++i) { PacketPtr p = new PacketData(16384); -- 2.30.2