forked from Bananymous/banan-os
libc: fix tmpnam when no name is found
This commit is contained in:
@@ -979,9 +979,9 @@ char* tmpnam(char* storage)
|
|||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (stat(storage, &st) == -1 && errno == ENOENT)
|
if (stat(storage, &st) == -1 && errno == ENOENT)
|
||||||
break;
|
return storage;
|
||||||
}
|
}
|
||||||
return storage;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ungetc_unlocked(int c, FILE* stream)
|
int ungetc_unlocked(int c, FILE* stream)
|
||||||
|
|||||||
Reference in New Issue
Block a user