NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/49666: initialization of instr wrong in dt_cg.c
>Number: 49666
>Category: bin
>Synopsis: initialization of instr wrong in dt_cg.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 14 12:30:00 +0000 2015
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Initialization is wrong instr is type uint32_t not a pointer.
>How-To-Repeat:
>Fix:
diff -u -p -r1.3 dt_cg.c
--- external/cddl/osnet/dist/lib/libdtrace/common/dt_cg.c 7 Feb 2015 20:30:03 -0000 1.3
+++ external/cddl/osnet/dist/lib/libdtrace/common/dt_cg.c 14 Feb 2015 09:55:43 -0000
@@ -407,7 +407,7 @@ static void
dt_cg_store(dt_node_t *src, dt_irlist_t *dlp, dt_regset_t *drp, dt_node_t *dst)
{
ctf_encoding_t e;
- dif_instr_t instr = NULL;
+ dif_instr_t instr = 0;
size_t size;
int reg;
Home |
Main Index |
Thread Index |
Old Index