fixing compile error, improving style
authorChristian Grothoff <christian@grothoff.org>
Mon, 1 Aug 2011 20:51:55 +0000 (20:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 1 Aug 2011 20:51:55 +0000 (20:51 +0000)
src/util/disk.c

index 2d76eab1a7b515189df30ab99e4531e9e3b85f17..d5e6f2f6086694c736f045f8f29703d80056d117 100644 (file)
@@ -352,11 +352,11 @@ GNUNET_DISK_mktemp (const char *t)
   char *fn;
 
   if ( (t[0] != '/') &&
-       (t[0] != '\\') &&
+       (t[0] != '\\') 
 #if WINDOWS
-       !(t[0] >= 'A' && t[0] <= 'z' && t[0] != 0 && t[1] == ':')
+       && ! (isalpha ((int) t[0]) && (t[0] != '\0') && (t[1] == ':'))
 #endif
-)
+       )
     {
       tmpdir = getenv ("TMPDIR");
       tmpdir = tmpdir ? tmpdir : "/tmp";