1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

No explicit initialization necessary for a zero blob

This commit is contained in:
Volker Lendecke 2009-07-25 12:56:06 -04:00
parent 4c6547e8a1
commit 7c768ddab6

View File

@ -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) {