another return value fix for mktemp...
This commit is contained in:
parent
2697b4e755
commit
3825847243
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ char *__mktemp(char *template)
|
||||||
|
|
||||||
if (l < 6 || strcmp(template+l-6, "XXXXXX")) {
|
if (l < 6 || strcmp(template+l-6, "XXXXXX")) {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return 0;
|
*template = 0;
|
||||||
|
return template;
|
||||||
}
|
}
|
||||||
clock_gettime(CLOCK_REALTIME, &ts);
|
clock_gettime(CLOCK_REALTIME, &ts);
|
||||||
r = ts.tv_nsec + (uintptr_t)&ts / 16 + (uintptr_t)template;
|
r = ts.tv_nsec + (uintptr_t)&ts / 16 + (uintptr_t)template;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue