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

@ -1055,11 +1055,12 @@ cant_access_acl:
case GETACL:
if (!aclbufp)
set_errno(EFAULT);
else
else {
res = getacl (get_stat_handle (), pc, nentries, aclbufp);
/* For this ENOSYS case, see security.cc:get_file_attribute(). */
if (res == -1 && get_errno () == ENOSYS)
goto cant_access_acl;
}
break;
case GETACLCNT:
res = getacl (get_stat_handle (), pc, 0, NULL);