@@ -29,10 +29,9 @@
(This function comes from OpenBSD.) */
char * mkdtemp (char *template)
{
- if (__gen_tempname (template, __GT_DIR))
+ if (__gen_tempname (template, __GT_DIR))
- /* We return the null string if we can't find a unique file name. */
+ return NULL;
- template[0] = '\0';
+ else
-
return template;
}
#endif