diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2015-10-07 15:47:43 +0000 |
|---|---|---|
| committer | ngkaho1234 <ngkaho1234@gmail.com> | 2015-10-07 15:47:43 +0000 |
| commit | 801cc44cbad8ecf24b36cc51bcce68405e81b652 (patch) | |
| tree | ffa9a421688b2802850698574af0c03ce33d00d1 | |
| parent | b824765f6090f3051add513f72c6f73db02734af (diff) | |
FIX: no entries found during iteration.
| -rw-r--r-- | lwext4/ext4_xattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lwext4/ext4_xattr.c b/lwext4/ext4_xattr.c index 2c252bb..a38cc32 100644 --- a/lwext4/ext4_xattr.c +++ b/lwext4/ext4_xattr.c @@ -737,9 +737,9 @@ ext4_fs_xattr_iterate(struct ext4_xattr_ref *ref, int (iter)(struct ext4_xattr_ref *ref, struct ext4_xattr_item *item)) { - struct ext4_xattr_item *item = ref->iter_from; - if (!item) - item = RB_MIN(ext4_xattr_tree, &ref->root); + struct ext4_xattr_item *item; + if (!ref->iter_from) + ref->iter_from = RB_MIN(ext4_xattr_tree, &ref->root); RB_FOREACH_FROM(item, ext4_xattr_tree, |
