aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-01 20:51:55 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-01 20:51:55 +0000
commit070a124b2a307accd0cc9a755a409668f5483704 (patch)
tree58d5ddde697e3adce9246cb569d4d8f1692eef15 /src/util
parent5a827fc9c6c618a9aadeb3917db0edd0d98a5ab0 (diff)
downloadgnunet-070a124b2a307accd0cc9a755a409668f5483704.tar.gz
gnunet-070a124b2a307accd0cc9a755a409668f5483704.zip
fixing compile error, improving style
Diffstat (limited to 'src/util')
-rw-r--r--src/util/disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/disk.c b/src/util/disk.c
index 2d76eab1a..d5e6f2f60 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -352,11 +352,11 @@ GNUNET_DISK_mktemp (const char *t)
352 char *fn; 352 char *fn;
353 353
354 if ( (t[0] != '/') && 354 if ( (t[0] != '/') &&
355 (t[0] != '\\') && 355 (t[0] != '\\')
356#if WINDOWS 356#if WINDOWS
357 !(t[0] >= 'A' && t[0] <= 'z' && t[0] != 0 && t[1] == ':') 357 && ! (isalpha ((int) t[0]) && (t[0] != '\0') && (t[1] == ':'))
358#endif 358#endif
359) 359 )
360 { 360 {
361 tmpdir = getenv ("TMPDIR"); 361 tmpdir = getenv ("TMPDIR");
362 tmpdir = tmpdir ? tmpdir : "/tmp"; 362 tmpdir = tmpdir ? tmpdir : "/tmp";