Skip to content

Commit

Permalink
imgeditor: Fix editor_prepare_private_data
Browse files Browse the repository at this point in the history
clear the private data buffer first

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
  • Loading branch information
qianfan-Zhao committed Aug 19, 2024
1 parent 4603616 commit aa188d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ static int editor_prepare_private_data(struct imgeditor *editor)
editor->private_data_size, editor->name);
return -1;
}
memset(editor->private_data, 0, editor->private_data_size);
}

return 0;
Expand Down

0 comments on commit aa188d5

Please sign in to comment.