projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
run dtors before taking the exit-lock in pthread exit
[musl]
/
src
/
temp
/
mktemp.c
diff --git
a/src/temp/mktemp.c
b/src/temp/mktemp.c
index
1057651
..
654a279
100644
(file)
--- a/
src/temp/mktemp.c
+++ b/
src/temp/mktemp.c
@@
-17,7
+17,8
@@
char *__mktemp(char *template)
if (l < 6 || strcmp(template+l-6, "XXXXXX")) {
errno = EINVAL;
- return 0;
+ *template = 0;
+ return template;
}
clock_gettime(CLOCK_REALTIME, &ts);
r = ts.tv_nsec + (uintptr_t)&ts / 16 + (uintptr_t)template;