diff options
-rw-r--r-- | libcrystfel/src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |