NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: port-amd64/52964: src/sys/arch/amd64/amd64/db_interface.c:241: suspicous coding ?
> src/sys/arch/amd64/amd64/db_interface.c:241]: (warning) Address of local variable dbreg is assigned to global pointer ddb_regp and not reassigned before dbre
> g goes out of scope.
>
> Source code is
>
> ddb_regp = &dbreg;
>
> Surely dangerous to export the address of a local variable outside the
> scope of the function ?
this line should asssign NULL. looks like a copy pasto.
.mrg.
Home |
Main Index |
Thread Index |
Old Index