- if (loc->attr_name_nchars != 0) {
- loc->attr_name = utf16le_dup(old->ntfs_loc->attr_name);
- if (loc->attr_name == NULL)
+ if (new->ntfs_loc->attr_name_nchars != 0) {
+ new->ntfs_loc->attr_name =
+ utf16le_dup(old->ntfs_loc->attr_name);
+ if (new->ntfs_loc->attr_name == NULL)