Commit a218437c authored by Bastien Nocera's avatar Bastien Nocera
Browse files

mindtct: Fix uninitialised value usage in count_minutia_ridges()

libfprint/nbis/mindtct/ridges.c:153:7: warning: 1st function call argument is an uninitialized value
      free(nbr_list);
      ^~~~~~~~~~~~~~
parent 0add0ca9
...@@ -148,9 +148,11 @@ int count_minutia_ridges(const int first, MINUTIAE *minutiae, ...@@ -148,9 +148,11 @@ int count_minutia_ridges(const int first, MINUTIAE *minutiae,
int i, ret, *nbr_list, *nbr_nridges, nnbrs; int i, ret, *nbr_list, *nbr_nridges, nnbrs;
/* Find up to the maximum number of qualifying neighbors. */ /* Find up to the maximum number of qualifying neighbors. */
nbr_list = NULL;
if((ret = find_neighbors(&nbr_list, &nnbrs, lfsparms->max_nbrs, if((ret = find_neighbors(&nbr_list, &nnbrs, lfsparms->max_nbrs,
first, minutiae))){ first, minutiae))){
free(nbr_list); if (nbr_list != NULL)
free(nbr_list);
return(ret); return(ret);
} }
......
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