diff --git a/src/cmd/as/as.c b/src/cmd/as/as.c index 08a5172..21bea9e 100644 --- a/src/cmd/as/as.c +++ b/src/cmd/as/as.c @@ -520,7 +520,12 @@ void startup () { register int i; - mktemp (tfilename); + int fd = mkstemp (tfilename); + if (fd == -1) { + uerror ("cannot create temporary file %2", tfilename); + } else { + close(fd); + } for (i=STEXT; i