diff options
author | Susant Palai <spalai@redhat.com> | 2018-08-03 17:43:28 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-11-26 05:39:52 +0000 |
commit | a2829d1151cabd13764e271a07568b9c90261a76 (patch) | |
tree | 0f92ad2f1ebae790b7b9c2ce74b8ecadb8a961af /contrib/mount/mntent_compat.h | |
parent | c97938e0508d991f44fd6a02216ecae120bfcac8 (diff) | |
download | glusterfs-a2829d1151cabd13764e271a07568b9c90261a76.tar.gz glusterfs-a2829d1151cabd13764e271a07568b9c90261a76.tar.xz glusterfs-a2829d1151cabd13764e271a07568b9c90261a76.zip |
coding-standard: memset before string functions similar to sprintf/snprintf etc
String functions like sprintf/snprintf/vprintf etc terminates the string with a
null character. This makes meset redundant and also incurs some performance
penalty.
Also added a comment about using GF_MALLOC instead of GF_CALLOC for allocating
buffer for strings, targeted by such functions.
Fixes: bz#1193929
Change-Id: I4f40d4fd5342b70983936119606c6c9f352c303c
Signed-off-by: Susant Palai <spalai@redhat.com>
Diffstat (limited to 'contrib/mount/mntent_compat.h')
0 files changed, 0 insertions, 0 deletions