From: cgf Date: Fri, 20 Apr 2001 16:40:04 +0000 (+0000) Subject: * path.cc (path_conv::check): Always initialize member variables. X-Git-Tag: pre-posix-scan~12 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=34616fe239ad598f1583aa861d7ffb08b2f445a7;p=pf3gnuchains%2Fpf3gnuchains4x.git * path.cc (path_conv::check): Always initialize member variables. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a0022529ab..a00eba8b27 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2001-04-19 Egor Duda + + * path.cc (path_conv::check): Always initialize member variables. + Fri Apr 20 12:27:49 2001 Christopher Faylor * include/sys/file.h: More cleanup for X_OK. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 872594b05a..137d913fab 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -229,6 +229,13 @@ path_conv::check (const char *src, unsigned opt, char *rel_path, *full_path; + int loop = 0; + path_flags = 0; + known_suffix = NULL; + fileattr = (DWORD) -1; + case_clash = FALSE; + devn = unit = 0; + if (!(opt & PC_NULLEMPTY)) error = 0; else if ((error = check_null_empty_path (src))) @@ -240,11 +247,6 @@ path_conv::check (const char *src, unsigned opt, rel_path = this->path, full_path = path_buf; /* This loop handles symlink expansion. */ - int loop = 0; - path_flags = 0; - known_suffix = NULL; - fileattr = (DWORD) -1; - case_clash = FALSE; for (;;) { MALLOC_CHECK;