Browse Source

* source/files.c : add assert

master
Alex 'AdUser' Z 8 years ago
parent
commit
247ddfe20e
  1. 2
      src/sources/files.c

2
src/sources/files.c

@ -184,6 +184,8 @@ bool
stop(cfg_t *cfg) { stop(cfg_t *cfg) {
f2b_file_t *next = NULL; f2b_file_t *next = NULL;
assert(cfg != NULL);
for (; cfg->files != NULL; cfg->files = next) { for (; cfg->files != NULL; cfg->files = next) {
next = cfg->files->next; next = cfg->files->next;
file_close(cfg->files); file_close(cfg->files);

Loading…
Cancel
Save