mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-22 05:00:08 +02:00
util/nvmutil: reset fd/rfd to negative one
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -69,8 +69,8 @@ static uint16_t macbuf[3];
|
|||||||
static off_t partsize;
|
static off_t partsize;
|
||||||
|
|
||||||
static int flags;
|
static int flags;
|
||||||
static int rfd;
|
static int rfd = -1;
|
||||||
static int fd;
|
static int fd = -1;
|
||||||
static int part;
|
static int part;
|
||||||
static int invert;
|
static int invert;
|
||||||
static int part_modified[2];
|
static int part_modified[2];
|
||||||
@@ -173,7 +173,8 @@ reset_global_state(void)
|
|||||||
part_modified[1] = 0;
|
part_modified[1] = 0;
|
||||||
fname = "";
|
fname = "";
|
||||||
cmd = NULL;
|
cmd = NULL;
|
||||||
fd = 0;
|
fd = -1;
|
||||||
|
rfd = -1;
|
||||||
part = 0;
|
part = 0;
|
||||||
|
|
||||||
memset(macbuf, 0, sizeof(macbuf));
|
memset(macbuf, 0, sizeof(macbuf));
|
||||||
|
|||||||
Reference in New Issue
Block a user