fix vfs_vdir_iter
This commit is contained in:
parent
ed2fd0f969
commit
3d25c6ee13
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ static const char* vfs_vdir_iter(VFSNode *vdir, void **opaque) {
|
|||
ht_str2ptr_iter_t *iter = *opaque;
|
||||
|
||||
if(!iter) {
|
||||
iter = calloc(1, sizeof(*iter));
|
||||
iter = *opaque = calloc(1, sizeof(*iter));
|
||||
ht_iter_begin(VDIR_TABLE(vdir), iter);
|
||||
} else {
|
||||
ht_iter_next(iter);
|
||||
|
|
Loading…
Reference in a new issue