• 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
    7a72d8fd
Name
Last commit
Last update
..
drivers Loading commit data...
nbis Loading commit data...
drivers_api.h Loading commit data...
empty_file Loading commit data...
fp_internal.h Loading commit data...
fpi-assembling.c Loading commit data...
fpi-assembling.h Loading commit data...
fpi-async.c Loading commit data...
fpi-async.h Loading commit data...
fpi-core.c Loading commit data...
fpi-core.h Loading commit data...
fpi-data.c Loading commit data...
fpi-data.h Loading commit data...
fpi-dev-img.c Loading commit data...
fpi-dev-img.h Loading commit data...
fpi-dev.c Loading commit data...
fpi-dev.h Loading commit data...
fpi-img-pixman.c Loading commit data...
fpi-img.c Loading commit data...
fpi-img.h Loading commit data...
fpi-log.h Loading commit data...
fpi-poll.c Loading commit data...
fpi-poll.h Loading commit data...
fpi-ssm.c Loading commit data...
fpi-ssm.h Loading commit data...
fpi-sync.c Loading commit data...
fpi-usb.c Loading commit data...
fpi-usb.h Loading commit data...
fprint-list-supported-devices.c Loading commit data...
fprint-list-udev-rules.c Loading commit data...
fprint.h Loading commit data...
meson.build Loading commit data...