NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/49667: Missing initialization of values in dt_parser.c



>Number:         49667
>Category:       bin
>Synopsis:       Missing initialization of values in dt_parser.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 14 12:35:00 +0000 2015
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Missing initizalization of values *ctfg and type in dt_parser.c
>How-To-Repeat:

>Fix:
diff -u -p -r1.4 dt_parser.c
+++ external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.c	14 Feb 2015 10:33:12 -0000
--- external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.c	7 Feb 2015 20:30:03 -0000	1.4
@@ -3081,8 +3081,8 @@ dt_cook_op2(dt_node_t *dnp, uint_t idfla
 	int op = dnp->dn_op;
 
 	ctf_membinfo_t m;
-	ctf_file_t *ctfp;
-	ctf_id_t type;
+	ctf_file_t *ctfp = NULL;
+	ctf_id_t type = 0;
 	int kind, val, uref;
 	dt_ident_t *idp;



Home | Main Index | Thread Index | Old Index