Browse Source

* source/files : force recalc stag on file open

master
Alex 'AdUser' Z 4 years ago
parent
commit
89ca74ebd7
  1. 2
      src/sources/files.c

2
src/sources/files.c

@ -63,6 +63,7 @@ file_open(f2b_file_t *file, const char *path) {
memcpy(&file->st, &st, sizeof(st)); memcpy(&file->st, &st, sizeof(st));
strlcpy(file->path, buf, sizeof(file->path)); strlcpy(file->path, buf, sizeof(file->path));
file->fd = fd; file->fd = fd;
file->stag = fnv_32a_str(file->path, FNV1_32A_INIT);
return true; return true;
} }
@ -175,7 +176,6 @@ start(cfg_t *cfg) {
free(file); free(file);
continue; continue;
} }
file->stag = fnv_32a_str(globbuf.gl_pathv[i], FNV1_32A_INIT);
if (cfg->files == NULL) { if (cfg->files == NULL) {
cfg->files = file; cfg->files = file;
} else { } else {

Loading…
Cancel
Save