From: Thibault Godouet Date: Wed, 4 Jul 2001 16:16:15 +0000 (+0000) Subject: OA X-Git-Tag: ver2_9_4~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06f3b45cffc4949d91f9a81ef9b073348b67e945;p=thirdparty%2Ffcron.git 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);