X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frstemp.c;h=173af35c670d4bef172686b1f0bcf2b8c92c0fa0;hb=dbf7ead21f60be189f0d532175c92924a8eb73fd;hp=1d396875cfd7cbc982657cea787a73b4ac217cda;hpb=f1a944fbdac20e88bf55918f2a4f66c301d684e2;p=idzebra-moved-to-github.git diff --git a/rset/rstemp.c b/rset/rstemp.c index 1d39687..173af35 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.32 2002-05-03 13:46:33 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->fd = mkstemp (template);