From: Rich Felker Date: Sun, 12 Jun 2011 14:25:29 +0000 (-0400) Subject: another return value fix for mktemp... X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=382584724308442f03f3d29f7fc6de9e9d140982;hp=2697b4e755f0ca3f0c660894eb6e906a046789bb another return value fix for mktemp... --- diff --git a/src/temp/mktemp.c b/src/temp/mktemp.c index 1057651e..654a2794 100644 --- 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;