diff options
-rw-r--r-- | libports/create-class.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libports/create-class.c b/libports/create-class.c index fe17f0ba..8a2d68b0 100644 --- a/libports/create-class.c +++ b/libports/create-class.c @@ -34,5 +34,8 @@ ports_create_class (void (*clean_routine)(void *), cl->dropweak_routine = dropweak_routine; cl->flags = 0; cl->rpcs = 0; + cl->ports = NULL; + cl->count = 0; + return cl; } |