aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWilliam Roberts <william.c.roberts@intel.com>2018-03-15 14:07:12 -0700
committerAndreas Fuchs <andreas.fuchs@sit.fraunhofer.de>2018-03-16 12:32:40 +0100
commit01bdf72ece8b6003bbffa7039d48b5dce2dda244 (patch)
tree3e8abffd5b617ad7bdf42e9cc93d21608876067c /include
parent910f17c96d91159ea29e660a5450c3cfad591d62 (diff)
downloadtpm2-tss-01bdf72ece8b6003bbffa7039d48b5dce2dda244.tar.gz
esys: use calloc instead of memset
Use calloc instead of malloc and memset. Libc calloc will perform a malloc + memset under worse case scenarios. Most OS specific routines, like mmap with map anonymous will return 0 filled pages, and thus memset will not need to be done. Signed-off-by: William Roberts <william.c.roberts@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions