Skip to content
Snippets Groups Projects
Commit 9a727788 authored by Colin Walters's avatar Colin Walters
Browse files

dfditer: Unset initialized variable when cleared

This allows reusing an iterator struct.
parent 39c63938
No related branches found
No related tags found
No related merge requests found
......@@ -199,4 +199,5 @@ glnx_dirfd_iterator_clear (GLnxDirFdIterator *dfd_iter)
GLnxRealDirfdIterator *real_dfd_iter = (GLnxRealDirfdIterator*) dfd_iter;
/* fd is owned by dfd_iter */
(void) closedir (real_dfd_iter->d);
real_dfd_iter->initialized = FALSE;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment