From ad3b30a9641b8e09c38ea76e7011b614152d8faf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 05:01:54 -0400 Subject: In value_t::_dup, test if storage is uninitialized --- src/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 361282c4..03d2550c 100644 --- a/src/value.h +++ b/src/value.h @@ -256,7 +256,7 @@ private: */ void _dup() { VERIFY(storage); - if (storage->refc > 1) + if (storage && storage->refc > 1) storage = new storage_t(*storage.get()); } -- cgit v1.2.3