From aa6f4ffe51b1963228abe0d001ba77b6e45bc1bf Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 1 Mar 2011 23:19:20 +1030 Subject: [PATCH] noerr: don't use tempnam We run in a temporary directory now. Also, avoids warning and memory leak. --- ccan/noerr/test/run.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ccan/noerr/test/run.c b/ccan/noerr/test/run.c index aeef1ca8..503ba81c 100644 --- a/ccan/noerr/test/run.c +++ b/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; -- 2.39.2