summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-05-22 01:25:37 +0000
committerChristopher Faylor <me@cgf.cx>2008-05-22 01:25:37 +0000
commit9ea50a60e17a1c52ff92ce8b24578442e6c30ec2 (patch)
tree7b35e299fdec9feee09c9c7ba4bc87305401d4fa /winsup/cygwin/syscalls.cc
parent4962a9453ac3a9c23cba3c7e952242a6831f0cb3 (diff)
downloadcygnal-9ea50a60e17a1c52ff92ce8b24578442e6c30ec2.tar.gz
cygnal-9ea50a60e17a1c52ff92ce8b24578442e6c30ec2.tar.bz2
cygnal-9ea50a60e17a1c52ff92ce8b24578442e6c30ec2.zip
* string.h (strchr): Eliminate.
* syscalls.cc (rename): Work around inexplicable C++ warning.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 01e744570..a7471d958 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1505,7 +1505,7 @@ rename (const char *oldpath, const char *newpath)
bool old_explicit_suffix = false, new_explicit_suffix = false;
size_t olen, nlen;
bool equal_path;
- NTSTATUS status;
+ NTSTATUS status = 0;
HANDLE fh = NULL, nfh;
HANDLE old_trans = NULL, trans = NULL;
OBJECT_ATTRIBUTES attr;