Page MenuHomeFreeBSD

D46007.diff
No OneTemporary

D46007.diff

diff --git a/contrib/elftoolchain/libdwarf/libdwarf_init.c b/contrib/elftoolchain/libdwarf/libdwarf_init.c
--- a/contrib/elftoolchain/libdwarf/libdwarf_init.c
+++ b/contrib/elftoolchain/libdwarf/libdwarf_init.c
@@ -302,7 +302,7 @@
{
Dwarf_Debug dbg;
- if ((dbg = calloc(sizeof(struct _Dwarf_Debug), 1)) == NULL) {
+ if ((dbg = calloc(1, sizeof(struct _Dwarf_Debug))) == NULL) {
DWARF_SET_ERROR(dbg, error, DW_DLE_MEMORY);
return (DW_DLE_MEMORY);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 1:10 PM (17 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16144164
Default Alt Text
D46007.diff (462 B)

Event Timeline