diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-13 05:01:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 05:01:54 -0400 |
commit | ad3b30a9641b8e09c38ea76e7011b614152d8faf (patch) | |
tree | 1ecae8d3e9813d0596862a804014b87540ac6b54 /src/value.h | |
parent | 4a44218da15c5d4dfb29fc32dfe5818a5ac27b7a (diff) | |
download | fork-ledger-ad3b30a9641b8e09c38ea76e7011b614152d8faf.tar.gz fork-ledger-ad3b30a9641b8e09c38ea76e7011b614152d8faf.tar.bz2 fork-ledger-ad3b30a9641b8e09c38ea76e7011b614152d8faf.zip |
In value_t::_dup, test if storage is uninitialized
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |