mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
eliminate useless GCC warning by initializing the entry variable
svn path=/trunk/; revision=10191
This commit is contained in:
parent
4afe092bc0
commit
b96e6b7b0a
|
@ -225,7 +225,7 @@ void ShellDirectory::read_directory(int scan_flags)
|
|||
TCHAR buffer[MAX_PATH];
|
||||
|
||||
if ((scan_flags&SCAN_FILESYSTEM) && get_path(buffer)) {
|
||||
Entry* entry;
|
||||
Entry* entry = NULL; // eliminate useless GCC warning by initializing entry
|
||||
|
||||
LPTSTR p = buffer + _tcslen(buffer);
|
||||
|
||||
|
@ -373,7 +373,7 @@ void ShellDirectory::read_directory(int scan_flags)
|
|||
(scan_flags&SCAN_DO_ACCESS) && !removeable);
|
||||
|
||||
try {
|
||||
Entry* entry;
|
||||
Entry* entry = NULL; // eliminate useless GCC warning by initializing entry
|
||||
|
||||
if (w32fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
entry = new ShellDirectory(this, pidls[n], _hwnd);
|
||||
|
|
Loading…
Reference in a new issue