projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a827fc
)
fixing compile error, improving style
author
Christian Grothoff
<christian@grothoff.org>
Mon, 1 Aug 2011 20:51:55 +0000
(20:51 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Mon, 1 Aug 2011 20:51:55 +0000
(20:51 +0000)
src/util/disk.c
patch
|
blob
|
history
diff --git
a/src/util/disk.c
b/src/util/disk.c
index 2d76eab1a7b515189df30ab99e4531e9e3b85f17..d5e6f2f6086694c736f045f8f29703d80056d117 100644
(file)
--- a/
src/util/disk.c
+++ b/
src/util/disk.c
@@
-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";