make a bit more beautiful assignment in ntfs_non_resident_attr_record_add
(Logical change 1.613)edge.strict_endians
parent
da44d62de5
commit
1ff0764a9a
|
@ -2515,7 +2515,7 @@ int ntfs_non_resident_attr_record_add(ntfs_inode *ni, ATTR_TYPES type,
|
|||
a->data_size = 0;
|
||||
a->initialized_size = 0;
|
||||
/* Set empty mapping pairs. */
|
||||
*((u8*) a + (length - dataruns_size)) = 0;
|
||||
*((u8*)a + le16_to_cpu(a->mapping_pairs_offset)) = 0;
|
||||
}
|
||||
if (name_len)
|
||||
memcpy((u8*)a + le16_to_cpu(a->name_offset),
|
||||
|
|
Loading…
Reference in New Issue