tools/fib_multibind: Remove a redundant calculation
No functional change intended.
Reported by: kevans
Fixes: 3fa5521498 ("tools: Add a small program to demonstrate FIB handling in bind(2)")
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
This commit is contained in:
parent
685fb42538
commit
d46d45bf4b
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ main(int argc, char **argv)
|
|||
sc.nfibs = 1;
|
||||
}
|
||||
|
||||
sc.fds = calloc(all ? sc.nfibs : 1, sizeof(int));
|
||||
sc.fds = calloc(sc.nfibs, sizeof(int));
|
||||
if (sc.fds == NULL)
|
||||
err(1, "calloc");
|
||||
for (int i = 0; i < sc.nfibs; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue