core: Zero state structure
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -68,6 +68,7 @@ state_init(struct cav_state *state)
|
||||
return -1;
|
||||
}
|
||||
|
||||
memset(state, 0, sizeof(*state));
|
||||
state->dir_fd = open(input_name, O_RDONLY);
|
||||
if (state->dir_fd < 0) {
|
||||
return -1;
|
||||
@@ -79,7 +80,6 @@ state_init(struct cav_state *state)
|
||||
return -1;
|
||||
}
|
||||
|
||||
state->pass_count = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user