initialize targ->children
authorChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Sun, 20 Mar 1994 07:56:48 +0000 (23:56 -0800)
committerChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Sun, 20 Mar 1994 07:56:48 +0000 (23:56 -0800)
SCCS-vsn: usr.bin/make/suff.c 8.3

usr/src/usr.bin/make/suff.c

index 0073b09..bb5826a 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)suff.c     8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)suff.c     8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 /*-
 #endif /* not lint */
 
 /*-
@@ -1681,6 +1681,7 @@ SuffFindNormalDeps(gn)
            targ->suff = (Suff *)Lst_Datum(ln);
            targ->node = gn;
            targ->parent = (Src *)NULL;
            targ->suff = (Suff *)Lst_Datum(ln);
            targ->node = gn;
            targ->parent = (Src *)NULL;
+           targ->children = 0;
            
            /*
             * Allocate room for the prefix, whose end is found by subtracting
            
            /*
             * Allocate room for the prefix, whose end is found by subtracting
@@ -1721,6 +1722,7 @@ SuffFindNormalDeps(gn)
        targ->suff = suffNull;
        targ->node = gn;
        targ->parent = (Src *)NULL;
        targ->suff = suffNull;
        targ->node = gn;
        targ->parent = (Src *)NULL;
+       targ->children = 0;
        targ->pref = strdup(sopref);
 
        SuffAddLevel(srcs, targ);
        targ->pref = strdup(sopref);
 
        SuffAddLevel(srcs, targ);