From: thib <thib>
Date: Wed, 4 Jul 2001 16:16:15 +0000 (+0000)
Subject: OA
X-Git-Tag: ver1564~230
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd8df9160f2f5e88d7dbc7067e3e5e24b7622651;p=fcron

OA
we now use Set() macro
---

diff --git a/subs.c b/subs.c
index 0ec3b80..7f99391 100644
--- a/subs.c
+++ b/subs.c
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: subs.c,v 1.11 2001-06-24 13:23:40 thib Exp $ */
+ /* $Id: subs.c,v 1.12 2001-07-04 16:16:15 thib Exp $ */
 
 #include "global.h"
 #include "subs.h"
@@ -107,8 +107,7 @@ temp_file(char **name)
     i = 0;
     do {
 	i++;
-	free(name_local);
-	name_local = tempnam(NULL, NULL);
+	Set(name_local, tempnam(NULL, NULL));
 	if ( name_local == NULL )
 	    die("Can't find a unique temporary filename");
 	fd = open(name_local, O_RDWR|O_CREAT|O_EXCL|O_APPEND, S_IRUSR|S_IWUSR);