Subject: kern/23329: altq_hfsc.c doesn't compile
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rumble@ephemeral.org>
List: netbsd-bugs
Date: 11/01/2003 01:25:27
>Number:         23329
>Category:       kern
>Synopsis:       altq_hfsc.c doesn't compile
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 01 01:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Steve Rumble
>Release:        1.6ZD
>Organization:
>Environment:
NetBSD t23.ephemeral.org 1.6ZD NetBSD 1.6ZD (T23) #0: Thu Oct 23 22:39:08 EDT 2003  rumble@t23.ephemeral.org:/usr/src/sys/arch/i386/compile/T23 i386 i386
>Description:
Compiling the latest kernel sources (10/31) with ALTQ_HFSC fails due to gcc uninitialized compiler warning.
>How-To-Repeat:
Compile a kernel with ALTQ and ALTQ_HFSC.
>Fix:
Index: altq_hfsc.c
===================================================================
RCS file: /cvsroot/src/sys/altq/altq_hfsc.c,v
retrieving revision 1.7
diff -u -r1.7 altq_hfsc.c
--- altq_hfsc.c 2003/01/06 03:44:23     1.7
+++ altq_hfsc.c 2003/11/01 01:23:18
@@ -487,7 +487,7 @@
        struct hfsc_class *cl;
        struct service_curve *rsc, *fsc;
 {
-       struct internal_sc *rsc_tmp, *fsc_tmp;
+       struct internal_sc *rsc_tmp = NULL, *fsc_tmp = NULL;
        int s;
 
        if (rsc != NULL && (rsc->m1 != 0 || rsc->m2 != 0) &&
>Release-Note:
>Audit-Trail:
>Unformatted: