]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Call object initializer from omapi_object_initialize if there is one.
authorTed Lemon <source@isc.org>
Tue, 10 Oct 2000 22:59:37 +0000 (22:59 +0000)
committerTed Lemon <source@isc.org>
Tue, 10 Oct 2000 22:59:37 +0000 (22:59 +0000)
omapip/alloc.c

index 5bef5c8b9cdb3ac1bd7079d2f293acd09861f310..55eab6dd528a8d09a95d54edfd35fe1453590712 100644 (file)
@@ -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;
 }