C library: Fix an error in mkstemp() the could result in an infinite loop.

This commit is contained in:
Alan Carvalho de Assis 2017-07-12 15:25:55 -06:00 committed by Gregory Nutt
parent 1b9cb70828
commit 0d08ce500e

View File

@ -284,6 +284,8 @@ int mkstemp(FAR char *path_template)
return fd;
}
retries--;
}
/* We could not find an unique filename */