1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

LibC: Oops x2, we can't use "bool" in stdlib.h either

This commit is contained in:
Andreas Kling 2019-12-26 10:30:34 +01:00
parent b1fc5d9143
commit 9d681beaf0
3 changed files with 8 additions and 8 deletions

View file

@ -636,7 +636,7 @@ void funlockfile(FILE* filehandle)
FILE* tmpfile()
{
char tmp_path[] = "/tmp/XXXXXX";
if (!__generate_unique_filename(tmp_path))
if (__generate_unique_filename(tmp_path) < 0)
return nullptr;
int fd = open(tmp_path, O_CREAT | O_EXCL | O_RDWR, S_IWUSR | S_IRUSR);