Browse Source

* src/source/files.c : list_destroy() -> stop()

master
Alex 'AdUser' Z 8 years ago
parent
commit
b424b7fdfe
  1. 14
      src/sources/files.c

14
src/sources/files.c

@ -132,13 +132,15 @@ list_from_glob(const char *pattern) {
return files; return files;
} }
static void bool
list_destroy(f2b_file_t *list) { stop(cfg_t *cfg) {
f2b_file_t *next = NULL; f2b_file_t *next = NULL;
for (; list != NULL; list = next) { for (; cfg->files != NULL; cfg->files = next) {
next = list->next; next = cfg->files->next;
file_close(list); file_close(cfg->files);
free(list); free(cfg->files);
} }
return true;
} }

Loading…
Cancel
Save