From 3756a6c49c5666656f495ce5e8a8e2b7c600f184 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 8 Jul 1995 23:01:28 +0000 Subject: (ports_create_class): Initialize the PORTS and COUNT fields. --- libports/create-class.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3