Invert calloc(3) argument order.
Reviewed by: ed. MFC after: 4 weeks. Differential Revision: https://reviews.freebsd.org/D7902
This commit is contained in:
parent
d6a5db2944
commit
f6b47f4ebd
@ -2006,7 +2006,7 @@ NewInstance(const char *name)
|
||||
}
|
||||
}
|
||||
ninstance++;
|
||||
ip = calloc(sizeof *ip, 1);
|
||||
ip = calloc(1, sizeof(*ip));
|
||||
ip->name = strdup(name);
|
||||
ip->la = LibAliasInit (ip->la);
|
||||
ip->assignAliasAddr = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user