You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/06/02 16:19:05 UTC
[incubator-nuttx] branch master updated: libc: Fix a typo error in
tmpfile
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 6b3ac93 libc: Fix a typo error in tmpfile
6b3ac93 is described below
commit 6b3ac93e78681c3042bdb56dd5b88c9bfa3784f3
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Tue Jun 2 23:39:53 2020 +0800
libc: Fix a typo error in tmpfile
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
Change-Id: Ic6db2c76844a5a9d503fc46bb4b930870afbd9ed
---
libs/libc/stdio/lib_tmpfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/libc/stdio/lib_tmpfile.c b/libs/libc/stdio/lib_tmpfile.c
index 519f159..5c27de8 100644
--- a/libs/libc/stdio/lib_tmpfile.c
+++ b/libs/libc/stdio/lib_tmpfile.c
@@ -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)
{