aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-03-13 17:15:59 +0100
committerThomas White <taw@physics.org>2015-03-13 17:15:59 +0100
commit843fd9f43b917fe77e0e3672f3b998f51c56b131 (patch)
tree2f26f910741cd0d6915b63966fc60d66a3705fd6 /libcrystfel
parent9225115a425ced041133e849f3816178967e3307 (diff)
solve_svd(): Check n_filt before using
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/utils.c2
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);