From 228ca866e2a320269e25756d9672d0c7299b665f Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 8 Apr 2015 23:10:43 +0200 Subject: [PATCH] Fix a missed initialization of the new smartctl variable --- cmdline/state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmdline/state.c b/cmdline/state.c index 0fe75636..66f96426 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -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;