mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
C library: Fix an error in mkstemp() the could result in an infinite loop.
This commit is contained in:
committed by
Gregory Nutt
parent
1b9cb70828
commit
0d08ce500e
@@ -284,6 +284,8 @@ int mkstemp(FAR char *path_template)
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
retries--;
|
||||
}
|
||||
|
||||
/* We could not find an unique filename */
|
||||
|
||||
Reference in New Issue
Block a user