From 843fd9f43b917fe77e0e3672f3b998f51c56b131 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 13 Mar 2015 17:15:59 +0100 Subject: solve_svd(): Check n_filt before using --- libcrystfel/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/utils.c b/libcrystfel/src/utils.c index 643e0158..4a1d6c60 100644 --- a/libcrystfel/src/utils.c +++ b/libcrystfel/src/utils.c @@ -223,7 +223,7 @@ gsl_vector *solve_svd(gsl_vector *v, gsl_matrix *M, int *n_filt, int verbose) /* "SAS" is now "U" */ /* Filter the eigenvalues */ - *n_filt = check_eigen(s_val, verbose); + if ( n_filt != NULL ) *n_filt = check_eigen(s_val, verbose); gsl_matrix_free(SAS_copy); -- cgit v1.2.3