libc: fix tmpnam when no name is found

This commit is contained in:
Bananymous 2025-05-05 19:17:16 +03:00
parent c08c63f420
commit f14774d034
1 changed files with 2 additions and 2 deletions

View File

@ -979,9 +979,9 @@ char* tmpnam(char* storage)
struct stat st;
if (stat(storage, &st) == -1 && errno == ENOENT)
break;
return storage;
}
return storage;
return nullptr;
}
int ungetc_unlocked(int c, FILE* stream)