• 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
doc Loading commit data...
examples Loading commit data...
libfprint Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
HACKING.md Loading commit data...
INSTALL Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
TODO Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...