mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 01:59:54 +00:00
casefold bugfix
Signed-off-by: nieben <nieben1@huawei.com>
This commit is contained in:
parent
791908c828
commit
f32457e119
@ -483,7 +483,7 @@ f2fs_hash_t f2fs_dentry_hash(int encoding, int casefolded,
|
|||||||
if (!buff)
|
if (!buff)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
dlen = table->ops->casefold(table, name, len, buff, F2FS_NAME_LEN);
|
dlen = table->ops->casefold(table, name, len, buff, F2FS_NAME_LEN);
|
||||||
if (dlen < 0) {
|
if (dlen <= 0) {
|
||||||
free(buff);
|
free(buff);
|
||||||
goto opaque_seq;
|
goto opaque_seq;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user