Commit aa6f4ffe authored by Rusty Russell's avatar Rusty Russell

noerr: don't use tempnam

We run in a temporary directory now.  Also, avoids warning and memory leak.
parent f42bb0b0
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
/* tempnam(3) is generally a bad idea, but OK here. */ char *name = "noerr.file";
char *name = tempnam(NULL, "noerr");
int fd; int fd;
FILE *fp; FILE *fp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment