diff --git a/state.c b/state.c index 890498cd..7c1636ee 100644 --- a/state.c +++ b/state.c @@ -202,6 +202,9 @@ void state_read(struct snapraid_state* state) content = tommy_list_head(&state->contentlist)->data; pathcpy(path, sizeof(path), content->content); + + printf("Loading state from %s...\n", path); + f = fopen(path, "rt"); if (!f) { /* if not found, assume empty */ @@ -212,8 +215,6 @@ void state_read(struct snapraid_state* state) exit(EXIT_FAILURE); } - printf("Loading state from %s...\n", path); - /* start with a MD5 default. */ /* it's for compatibility with version 1.0 where MD5 was implicit. */ state->hash = HASH_MD5;