Commit 6d47c443 authored by Bastien Nocera's avatar Bastien Nocera

lib: Fix possible dereference in fpi_ssm_next_state()

libfprint/fpi-ssm.c:244:9: warning: Access to field 'completed' results in a dereference of a null pointer (loaded from variable 'machine')
libfprint/fpi-log.h:84:6: note: expanded from macro 'BUG_ON'
        if (condition) {                        \
parent 3cbc908a
......@@ -241,6 +241,8 @@ void fpi_ssm_mark_failed(fpi_ssm *machine, int error)
void fpi_ssm_next_state(fpi_ssm *machine)
g_return_if_fail (machine != NULL);
if (machine->cur_state == machine->nr_states) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment