C library: Fix an error in mkstemp() the could result in an infinite loop.
This commit is contained in:
parent
1b9cb70828
commit
0d08ce500e
@ -284,6 +284,8 @@ int mkstemp(FAR char *path_template)
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
retries--;
|
||||
}
|
||||
|
||||
/* We could not find an unique filename */
|
||||
|
Loading…
Reference in New Issue
Block a user