Fix a missed initialization of the new smartctl variable

This commit is contained in:
Andrea Mazzoleni 2015-04-08 23:10:43 +02:00
parent 214070dc4d
commit 228ca866e2

View file

@ -128,6 +128,7 @@ void state_init(struct snapraid_state* state)
state->file_mode = MODE_SEQUENTIAL;
for (l = 0; l < LEV_MAX; ++l) {
state->parity[l].path[0] = 0;
state->parity[l].smartctl[0] = 0;
state->parity[l].uuid[0] = 0;
state->parity[l].device = 0;
state->parity[l].total_blocks = 0;