libc: Fix a typo error in tmpfile

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic6db2c76844a5a9d503fc46bb4b930870afbd9ed
This commit is contained in:
Xiang Xiao 2020-06-02 23:39:53 +08:00 committed by patacongo
parent 9ff32427bf
commit 6b3ac93e78
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ FAR FILE *tmpfile(void)
fd = mkstemp(path);
if (fd >= 0)
{
unlink(fd);
unlink(path);
fp = fdopen(fd, "w+");
if (fp == NULL)
{