Fixed some minor issues with run

This commit is contained in:
Scoopta 2019-08-17 20:22:36 -07:00
parent 96cfbab518
commit 67e6dce992

View File

@ -58,7 +58,7 @@ static void do_run(GtkWidget* box) {
for(size_t count = 0; count < colon_count; ++count) {
DIR* dir = opendir(path);
if(dir == NULL) {
continue;
goto cont;
}
struct dirent* entry;
while((entry = readdir(dir)) != NULL) {
@ -76,6 +76,8 @@ static void do_run(GtkWidget* box) {
}
free(full_path);
}
closedir(dir);
cont:
path += strlen(path) + 1;
}
free(original_path);