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:
parent
40ca24f26f
commit
1e901d9ba6
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user