Invert calloc(3) argument order.

Reviewed by:	ed.
MFC after:	4 weeks.
Differential Revision:	https://reviews.freebsd.org/D7902
This commit is contained in:
araujo 2016-09-16 05:33:08 +00:00
parent d6a5db2944
commit f6b47f4ebd

View File

@ -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;