More documentation for 1.1 release.
[gem5.git] / dev / etherpkt.cc
index bf60bc150b00465f26688ae1f7335abbd4b22ab3..5dee7dc0df43463981f31e7d8b410dc97e8d4e79 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004 The Regents of The University of Michigan
+ * Copyright (c) 2004-2005 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -46,5 +46,6 @@ PacketData::unserialize(const string &base, Checkpoint *cp,
                         const string &section)
 {
     paramIn(cp, section, base + ".length", length);
-    arrayParamIn(cp, section, base + ".data", data, length);
+    if (length)
+        arrayParamIn(cp, section, base + ".data", data, length);
 }