diff lib-src/gnuclient.c @ 259:11cf20601dec r20-5b28

Import from CVS: tag r20-5b28
author cvs
date Mon, 13 Aug 2007 10:23:02 +0200
parents bfd6434d15b3
children 966663fcf606
line wrap: on
line diff
--- a/lib-src/gnuclient.c	Mon Aug 13 10:22:10 2007 +0200
+++ b/lib-src/gnuclient.c	Mon Aug 13 10:23:02 2007 +0200
@@ -312,6 +312,12 @@
   else
     progname = argv[0];
 
+#ifdef USE_TMPDIR
+  tmpdir = getenv ("TMPDIR");
+#endif
+  if (!tmpdir)
+    tmpdir = "/tmp";
+
   display = getenv ("DISPLAY");
   if (!display)
     suppress_windows_system = 1;