Browse Source

noerr: don't use tempnam

We run in a temporary directory now.  Also, avoids warning and memory leak.
Rusty Russell 15 years ago
parent
commit
aa6f4ffe51
1 changed files with 1 additions and 2 deletions
  1. 1 2
      ccan/noerr/test/run.c

+ 1 - 2
ccan/noerr/test/run.c

@@ -9,8 +9,7 @@
 
 int main(int argc, char *argv[])
 {
-	/* tempnam(3) is generally a bad idea, but OK here. */
-	char *name = tempnam(NULL, "noerr");
+	char *name = "noerr.file";
 	int fd;
 	FILE *fp;