diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-22 21:08:18 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-22 21:54:04 +0000 |
| commit | ca92e7831abe1ef26b7680c66f8ba06ddc68f076 (patch) | |
| tree | b9db46d3e9451c0d337a066c8e61da9350551341 /util/nvmutil/lib/state.c | |
| parent | cc7b0a438199a08276f1381d14d5caf0530084c2 (diff) | |
cleanup WIP
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib/state.c')
| -rw-r--r-- | util/nvmutil/lib/state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/lib/state.c b/util/nvmutil/lib/state.c index 836c6bc7..19d5cd8c 100644 --- a/util/nvmutil/lib/state.c +++ b/util/nvmutil/lib/state.c @@ -112,7 +112,8 @@ xstart(int argc, char *argv[]) us.argv0 = argv[0]; us.f.fname = argv[1]; - us.f.tname = new_tmpfile(&us.f.tmp_fd); + if (new_tmpfile(&us.f.tmp_fd, &us.f.tname) < 0) + err_no_cleanup(errno, "xstart: cannot create tmpfile"); /* parse user command */ /* TODO: CHECK ACCESSES VIA xstatus() */ |
