From 1f3396c47808ac26d212035cc4bf26d8ee68261a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Apr 2002 13:19:02 +0000 Subject: [PATCH] fix temp fname for null path --- rset/rstemp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rset/rstemp.c b/rset/rstemp.c index 1d39687..f650d10 100644 --- a/rset/rstemp.c +++ b/rset/rstemp.c @@ -3,7 +3,7 @@ * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * - * $Id: rstemp.c,v 1.30 2002-03-20 20:24:30 adam Exp $ + * $Id: rstemp.c,v 1.31 2002-04-17 13:19:02 adam Exp $ */ #include @@ -138,7 +138,10 @@ static void r_flush (RSFD rfd, int mk) #if HAVE_MKSTEMP char template[1024]; - sprintf (template, "%s/zrsXXXXXX", info->temp_path); + if (info->temp_path) + sprintf (template, "%s/zrsXXXXXX", info->temp_path); + else + sprintf (template, "zrsXXXXXX", info->temp_path); info->fd = mkstemp (template); -- 1.7.10.4