diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-25 12:56:06 -0400 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-25 12:59:21 -0400 |
commit | 7c768ddab6c0fb2868c4464fcb760994792dd898 (patch) | |
tree | c181527e70c4b2b395eed50681aeac8e5d160c5b /lib | |
parent | 4c6547e8a1f872e5bc1e132ec4ccc6f634166932 (diff) | |
download | samba-7c768ddab6c0fb2868c4464fcb760994792dd898.tar.gz samba-7c768ddab6c0fb2868c4464fcb760994792dd898.tar.bz2 samba-7c768ddab6c0fb2868c4464fcb760994792dd898.zip |
No explicit initialization necessary for a zero blob
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/util/util.c b/lib/util/util.c index 29b47f5858..f49d25865c 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -265,15 +265,13 @@ static void _dump_data(int level, const uint8_t *buf, int len, bool omit_zero_bytes) { int i=0; - const uint8_t empty[16]; + static const uint8_t empty[16] = { 0, }; bool skipped = false; if (len<=0) return; if (!DEBUGLVL(level)) return; - memset(&empty, '\0', 16); - for (i=0;i<len;) { if (i%16 == 0) { |