diff options
author | Peter Foley <pefoley2@pefoley.com> | 2016-03-19 20:45:49 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-20 13:55:08 +0300 |
commit | dc85a189a490d3fdd779da3aae1178aafde37cfc (patch) | |
tree | 5ba8657494914e88b4c73a5c6e5f58e2b0ebed85 /winsup/cygwin/mount.cc | |
parent | 922e21a3eae20cdf68aa8a2db6b03a52648c3d1e (diff) |
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>
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r-- | winsup/cygwin/mount.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index ece8745fc..22bc49c4a 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -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 * |