summaryrefslogtreecommitdiffstats
path: root/src/Section.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Section.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Section.cpp b/src/Section.cpp
index 1083538..2f72411 100644
--- a/src/Section.cpp
+++ b/src/Section.cpp
@@ -4,6 +4,12 @@
#include <cstring>
void Section::CalculateHash() const {
+ if (block.empty()) {
+ hash = 0;
+ return;
+ }
+
+
size_t offset = 0;
std::vector<unsigned char> rawData;