This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] cygcheck: Eliminate dead code


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=015f6894a06a66ed5aa5b65840fa580155dd5459

commit 015f6894a06a66ed5aa5b65840fa580155dd5459
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Sat Oct 22 22:57:03 2016 +0200

    cygcheck: Eliminate dead code
    
    Fixes Coverity CID 66907
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/utils/cygcheck.cc | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index c9eb8a6..16b47e8 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -795,12 +795,6 @@ track_down (const char *file, const char *suffix, int lvl)
   if (lvl)
     printf ("%*c", lvl, ' ');
 
-  if (!path)
-    {
-      display_error ("file not found - '%s'\n", file);
-      return false;
-    }
-
   printf ("%s", path);
 
   wide_path wpath (path);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]