aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Serialization/TarArchiveReader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Serialization/TarArchiveReader.cs')
-rw-r--r--OpenSim/Framework/Serialization/TarArchiveReader.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Framework/Serialization/TarArchiveReader.cs b/OpenSim/Framework/Serialization/TarArchiveReader.cs
index 694ea70..77c29f8 100644
--- a/OpenSim/Framework/Serialization/TarArchiveReader.cs
+++ b/OpenSim/Framework/Serialization/TarArchiveReader.cs
@@ -105,6 +105,10 @@ namespace OpenSim.Framework.Serialization
105 { 105 {
106 byte[] header = m_br.ReadBytes(512); 106 byte[] header = m_br.ReadBytes(512);
107 107
108 // If there are no more bytes in the stream, return null header
109 if (header.Length == 0)
110 return null;
111
108 // If we've reached the end of the archive we'll be in null block territory, which means 112 // If we've reached the end of the archive we'll be in null block territory, which means
109 // the next byte will be 0 113 // the next byte will be 0
110 if (header[0] == 0) 114 if (header[0] == 0)