* path.cc (path_conv::check): Always initialize member variables.
This commit is contained in:
parent
cbd8868713
commit
b9815dc3dc
@ -1,3 +1,7 @@
|
|||||||
|
2001-04-19 Egor Duda <deo@logos-m.ru>
|
||||||
|
|
||||||
|
* path.cc (path_conv::check): Always initialize member variables.
|
||||||
|
|
||||||
Fri Apr 20 12:27:49 2001 Christopher Faylor <cgf@cygnus.com>
|
Fri Apr 20 12:27:49 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* include/sys/file.h: More cleanup for X_OK.
|
* include/sys/file.h: More cleanup for X_OK.
|
||||||
|
@ -229,6 +229,13 @@ path_conv::check (const char *src, unsigned opt,
|
|||||||
|
|
||||||
char *rel_path, *full_path;
|
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))
|
if (!(opt & PC_NULLEMPTY))
|
||||||
error = 0;
|
error = 0;
|
||||||
else if ((error = check_null_empty_path (src)))
|
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;
|
rel_path = this->path, full_path = path_buf;
|
||||||
|
|
||||||
/* This loop handles symlink expansion. */
|
/* This loop handles symlink expansion. */
|
||||||
int loop = 0;
|
|
||||||
path_flags = 0;
|
|
||||||
known_suffix = NULL;
|
|
||||||
fileattr = (DWORD) -1;
|
|
||||||
case_clash = FALSE;
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
MALLOC_CHECK;
|
MALLOC_CHECK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user