aboutsummaryrefslogtreecommitdiff
path: root/gold/stringpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/stringpool.h')
-rw-r--r--gold/stringpool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/stringpool.h b/gold/stringpool.h
index df3826d..f353c9d 100644
--- a/gold/stringpool.h
+++ b/gold/stringpool.h
@@ -178,8 +178,10 @@ class Stringpool_template
void
set_no_zero_null()
{
- gold_assert(this->string_set_.empty());
+ gold_assert(this->string_set_.empty()
+ && this->offset_ == sizeof(Stringpool_char));
this->zero_null_ = false;
+ this->offset_ = 0;
}
// Indicate that this string pool should be optimized, even if not