From ceec584ad39bca6caa6704bde22af58551bb139f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 2 Jul 2012 20:01:19 +0000 Subject: * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate assignment found by Clang. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_virtual.cc | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1e9eb5e..7ae793f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2012-07-02 Christopher Faylor + * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate + assignment found by Clang. + +2012-07-02 Christopher Faylor + * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS error condition pointed to by Clang. diff --git a/winsup/cygwin/fhandler_virtual.cc b/winsup/cygwin/fhandler_virtual.cc index 59bb676..af73dde 100644 --- a/winsup/cygwin/fhandler_virtual.cc +++ b/winsup/cygwin/fhandler_virtual.cc @@ -77,7 +77,6 @@ fhandler_virtual::opendir (int fd) if (fd >= 0) { dir->__d_fd = fd; - res = dir; dir->__fh = this; res = dir; } -- cgit v1.1