cleanup ntfs_attr_open()

master
szaka 2008-06-29 16:52:27 +00:00
parent 81488fad6e
commit 7bcb40b378
1 changed files with 2 additions and 4 deletions

View File

@ -389,10 +389,8 @@ ntfs_attr *ntfs_attr_open(ntfs_inode *ni, const ATTR_TYPES type,
return NULL;
if (name && name != AT_UNNAMED && name != NTFS_INDEX_I30) {
name = ntfs_ucsndup(name, name_len);
if (!name) {
free(na);
return NULL;
}
if (!name)
goto err_out;
}
ctx = ntfs_attr_get_search_ctx(ni, NULL);