Add necessary braces to if statements

The missing braces cause only the first expression to be guarded by the
else clause.

winsup/cygwin/ChangeLog
* fhandler_disk_file.cc (facl): Add missing braces to if statement.
* mount.cc (dos_drive_mappings): Add missing braces to if statement.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
This commit is contained in:
Peter Foley
2016-03-19 13:45:49 -04:00
committed by Corinna Vinschen
parent 922e21a3ea
commit dc85a189a4
2 changed files with 4 additions and 2 deletions

View File

@ -1962,7 +1962,7 @@ dos_drive_mappings::dos_drive_mappings ()
HANDLE sh = FindFirstVolumeW (vol, 64);
if (sh == INVALID_HANDLE_VALUE)
debug_printf ("FindFirstVolumeW, %E");
else
else {
do
{
/* Skip drives which are not mounted. */
@ -2023,6 +2023,7 @@ dos_drive_mappings::dos_drive_mappings ()
}
while (FindNextVolumeW (sh, vol, 64));
FindVolumeClose (sh);
}
}
wchar_t *