summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-06-14 18:32:04 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-06-14 18:32:04 +0200
commitf5220af5ef488cef80005d2d4e467f97de772b06 (patch)
tree5b065aae69e4748e1e0562b9a78fbab298649452
parent551a77fa0f08584266e1340ef1cf2455d6be0bc2 (diff)
downloadefl-f5220af5ef488cef80005d2d4e467f97de772b06.tar.gz
eo: write the NULL barriers over calloc just to be sure
-rw-r--r--src/lib/eo/eo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 4bc55585ca..2c5d791469 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -970,6 +970,7 @@ eo_class_new(const Eo_Class_Description *desc, const Eo_Class *parent_id, ...)
DBG("Added '%s' extension", extn->desc->name);
}
+ *extn_itr = NULL;
}
/* Copy the mro and free the list.
@@ -989,6 +990,7 @@ eo_class_new(const Eo_Class_Description *desc, const Eo_Class *parent_id, ...)
DBG("Added '%s' to MRO", kls_itr->desc->name);
}
+ *mro_itr = NULL;
}
size_t extn_data_off = klass->data_offset +
@@ -1011,6 +1013,8 @@ eo_class_new(const Eo_Class_Description *desc, const Eo_Class *parent_id, ...)
extn_data_off += EO_ALIGN_SIZE(extn_data_itr->klass->desc->data_size);
extn_data_itr++;
}
+ extn_data_itr->klass = 0;
+ extn_data_itr->offset = 0;
}
klass->obj_size = _eo_sz + extn_data_off;