• Bastien Nocera's avatar
    lib: Fix uninitialised variable in fpi_imgdev_image_captured() · 7a72d8fd
    Bastien Nocera authored
    libfprint/fpi-dev-img.c:255:6: warning: variable 'print' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
            if (imgdev->action != IMG_ACTION_CAPTURE) {
    libfprint/fpi-dev-img.c:271:25: note: uninitialized use occurs here
            imgdev->acquire_data = print;
    libfprint/fpi-dev-img.c:255:2: note: remove the 'if' if its condition is always true
            if (imgdev->action != IMG_ACTION_CAPTURE) {
    libfprint/fpi-dev-img.c:232:29: note: initialize the variable 'print' to silence this warning
            struct fp_print_data *print;
                                        = NULL
fpi-dev-img.c 14.1 KB