core: Close subdir when finished scanning
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -130,6 +130,7 @@ consume_scan(const char *dir_path, struct cav_state *state, DIR *subdir)
|
|||||||
}
|
}
|
||||||
|
|
||||||
consume_scan(buf, state, subdir);
|
consume_scan(buf, state, subdir);
|
||||||
|
closedir(subdir);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
++state->file_count;
|
++state->file_count;
|
||||||
|
|||||||
Reference in New Issue
Block a user