svn commit: branches/uClibc_0_9_28/libc/stdlib
vapier at uclibc.org
vapier at uclibc.org
Sun Jan 28 05:33:37 UTC 2007
Author: vapier
Date: 2007-01-27 21:33:37 -0800 (Sat, 27 Jan 2007)
New Revision: 17571
Log:
pull mkdtemp fix from trunk
Modified:
branches/uClibc_0_9_28/libc/stdlib/mkdtemp.c
Changeset:
Modified: branches/uClibc_0_9_28/libc/stdlib/mkdtemp.c
===================================================================
--- branches/uClibc_0_9_28/libc/stdlib/mkdtemp.c 2007-01-28 05:32:51 UTC (rev 17570)
+++ branches/uClibc_0_9_28/libc/stdlib/mkdtemp.c 2007-01-28 05:33:37 UTC (rev 17571)
@@ -28,9 +28,8 @@
(This function comes from OpenBSD.) */
char * mkdtemp (char *template)
{
- if (__gen_tempname (template, __GT_DIR))
- /* We return the null string if we can't find a unique file name. */
- template[0] = '\0';
-
+ if (__gen_tempname (template, __GT_DIR))
+ return NULL;
+ else
return template;
}
More information about the uClibc-cvs
mailing list