summaryrefslogtreecommitdiff
path: root/libports/create-class.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-07-08 23:01:28 +0000
committerMiles Bader <miles@gnu.org>1995-07-08 23:01:28 +0000
commit3756a6c49c5666656f495ce5e8a8e2b7c600f184 (patch)
tree40611b6aa0c120d704a8fdd7d090af2966ad18e7 /libports/create-class.c
parentd9e968ebea1593d4621fb9c7b6058021f22340c5 (diff)
(ports_create_class): Initialize the PORTS and COUNT fields.
Diffstat (limited to 'libports/create-class.c')
-rw-r--r--libports/create-class.c3
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;
}