mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
mkhtemp: fix bad comparison
pointers are null, not zero. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user