mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
99819ca00c
commit
613fbf2c24
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue