summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-24 19:35:43 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-24 19:57:07 +0000
commitbf5a3df79692fa757d77b9f1280242053541ee6a (patch)
treea950fbb9b09882008518fc65b76ba6fcf70a6737
parent3522a235878900d8371db31ee7a18056861a3419 (diff)
mkhtemp: fix bad comparison
pointers are null, not zero. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/libreboot-utils/lib/mkhtemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/lib/mkhtemp.c b/util/libreboot-utils/lib/mkhtemp.c
index 87d7c8dc..dff05793 100644
--- a/util/libreboot-utils/lib/mkhtemp.c
+++ b/util/libreboot-utils/lib/mkhtemp.c
@@ -567,7 +567,7 @@ mkhtemp(int *fd,
if_err(len >= max_len, EMSGSIZE)
||
if_err_sys(slen(fname, max_len, &fname_len)) ||
- if_err(fname == 0, EINVAL) ||
+ if_err(fname == NULL, EINVAL) ||
if_err(strrchr(fname, '/') != NULL, EINVAL))
return -1;