summaryrefslogtreecommitdiff
path: root/omapip/alloc.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-10-10 22:59:37 +0000
committerTed Lemon <source@isc.org>2000-10-10 22:59:37 +0000
commitc50934195805931e92aad3e7aab7f9036432eb91 (patch)
tree1c21355e56b54c9560cd81427f4fc39c26ebb7f2 /omapip/alloc.c
parente0ac716a97b618ba97483e0d3a111e059167389d (diff)
downloadisc-dhcp-c50934195805931e92aad3e7aab7f9036432eb91.tar.gz
Call object initializer from omapi_object_initialize if there is one.
Diffstat (limited to 'omapip/alloc.c')
-rw-r--r--omapip/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/omapip/alloc.c b/omapip/alloc.c
index 5bef5c8b..55eab6dd 100644
--- a/omapip/alloc.c
+++ b/omapip/alloc.c
@@ -357,6 +357,8 @@ isc_result_t omapi_object_initialize (omapi_object_t *o,
{
memset (o, 0, psize);
o -> type = type;
+ if (type -> initialize)
+ (*type -> initialize) (o, file, line);
return ISC_R_SUCCESS;
}