fix vfs_vdir_iter

This commit is contained in:
Andrei Alexeyev 2018-07-25 07:55:48 +03:00
parent ed2fd0f969
commit 3d25c6ee13
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -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);