mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Initialize enrolled image pointer to NULL
Currently this is a dangling pointer if the image capture fails, and then we try to standardize an invalid pointer --> crash
This commit is contained in:
@@ -159,7 +159,7 @@ err:
|
||||
int img_dev_enroll(struct fp_dev *dev, gboolean initial, int stage,
|
||||
struct fp_print_data **ret, struct fp_img **_img)
|
||||
{
|
||||
struct fp_img *img;
|
||||
struct fp_img *img = NULL;
|
||||
struct fp_img_dev *imgdev = dev->priv;
|
||||
struct fp_print_data *print;
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user