libc: Fix a typo error in tmpfile
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ic6db2c76844a5a9d503fc46bb4b930870afbd9ed
This commit is contained in:
parent
9ff32427bf
commit
6b3ac93e78
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue