summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-16 05:37:37 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:52 -0400
commit023f28630f7ed8f845eab00b137d58cc79b4445b (patch)
treee48c55fa1e87f5b34c00cbca7aac334c97c9e7f0 /src/value.cc
parent52822604713b73160ac497bc170eb45d9a594306 (diff)
downloadfork-ledger-023f28630f7ed8f845eab00b137d58cc79b4445b.tar.gz
fork-ledger-023f28630f7ed8f845eab00b137d58cc79b4445b.tar.bz2
fork-ledger-023f28630f7ed8f845eab00b137d58cc79b4445b.zip
Changed xpath to use the new copy-on-write value_t.
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc
index 4089e0c3..9c50f830 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -967,7 +967,8 @@ void value_t::in_place_cast(type_t cast_type)
}
else if (cast_type == SEQUENCE) {
sequence_t temp;
- temp.push_back(*this);
+ if (! is_null())
+ temp.push_back(*this);
set_sequence(temp);
return;
}