---
scribo/ChangeLog | 5 +++++
scribo/scribo/core/object_links.hh | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 6a7d44a..14a2e51 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,10 @@
2013-04-17 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * scribo/core/object_links.hh: Always initialize links in
+ non-default constructors.
+
+2013-04-17 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* scribo/core/component_set.hh: Adjust memory pre-allocation size.
2013-04-17 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/scribo/core/object_links.hh b/scribo/scribo/core/object_links.hh
index ef1d3ab..9aa4db0 100644
--- a/scribo/scribo/core/object_links.hh
+++ b/scribo/scribo/core/object_links.hh
@@ -207,6 +207,9 @@ namespace scribo
object_links<L>::object_links(const component_set<L>& components)
{
data_ = new data_t(components, value::next(components.nelements()));
+
+ // Initialize with no link.
+ init();
}
--
1.7.2.5