aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-07-16 11:32:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-07-16 11:32:30 +0200
commitf8317dd174c60f7fdb1a535abe8a4d8d215e528e (patch)
treebfe09a5cb37209132ac90eae381c7df71a76cfaf
parent4c50b1653158ad66731bf4a0e3d5750d9d5b66c8 (diff)
Fix bug in odb::vector copy constructor
-rw-r--r--odb/vector-impl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/vector-impl.cxx b/odb/vector-impl.cxx
index 402f5cf..1c4dc40 100644
--- a/odb/vector-impl.cxx
+++ b/odb/vector-impl.cxx
@@ -22,7 +22,7 @@ namespace odb
{
// Copy the data over if we are tracking.
//
- if (state_ == state_tracking && size_ != 0)
+ if (state_ == state_tracking && x.size_ != 0)
{
realloc (x.size_ < 1024 ? 1024 : x.size_);
memcpy (data_, x.data_, x.size_ / 4 + (x.size_ % 4 == 0 ? 0 : 1));