Initialize t with memset(.., 0, ..)

This will help ensure that we're not using random garbage on the stack by
accident with respect to the variable

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2016-05-27 17:42:59 +00:00
parent 99819ca00c
commit 613fbf2c24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300856

View File

@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
#include <unistd.h>
@ -104,6 +105,8 @@ main(int argc, char **argv)
bool fflag, rflag, Eflag, mflag;
unsigned modeflags;
memset(&t, 0, sizeof(t));
fflag = rflag = Eflag = mflag = false;
modeflags = 0;