mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 23:39:33 +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 int flags;
|
||||
static int rfd;
|
||||
static int fd;
|
||||
static int rfd = -1;
|
||||
static int fd = -1;
|
||||
static int part;
|
||||
static int invert;
|
||||
static int part_modified[2];
|
||||
@@ -173,7 +173,8 @@ reset_global_state(void)
|
||||
part_modified[1] = 0;
|
||||
fname = "";
|
||||
cmd = NULL;
|
||||
fd = 0;
|
||||
fd = -1;
|
||||
rfd = -1;
|
||||
part = 0;
|
||||
|
||||
memset(macbuf, 0, sizeof(macbuf));
|
||||
|
||||
Reference in New Issue
Block a user