commit | f89bb0210fcf7bc52f9bc743bbc92c811b1f578a | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Mon Jul 18 16:48:43 2016 +0200 |
committer | Stephen Hemminger <shemming@brocade.com> | Wed Jul 20 12:05:24 2016 -0700 |
tree | 7de46088d17ae2485b607f0aa4b5666804a27bc6 | |
parent | d17b136f7d7dd6ed7ea518e4f068d3de735e8756 [diff] |
Replace malloc && memset by calloc This only replaces occurrences where the newly allocated memory is cleared completely afterwards, as in other cases it is a theoretical performance hit although code would be cleaner this way. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: David Ahern <dsa@cumulusnetworks.com>