aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-08-25 15:09:21 +0200
committerThomas White <taw@physics.org>2014-08-25 15:09:35 +0200
commit5e733011c3dd7f158cff89cb755d903ec5884e69 (patch)
tree4e80c8bc3df1d6abf42623f89b56cbebeceb94c5
parent3d6ecd6f7c9253ccc61c155fda1af9e52e5ae3eb (diff)
Clean up two more warnings
-rw-r--r--tests/pr_l_gradient_check.c2
-rw-r--r--tests/pr_pl_gradient_check.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/pr_l_gradient_check.c b/tests/pr_l_gradient_check.c
index 3b914219..b18196c9 100644
--- a/tests/pr_l_gradient_check.c
+++ b/tests/pr_l_gradient_check.c
@@ -125,7 +125,7 @@ static double test_gradients(Crystal *cr, double incr_val, int refine,
int nref;
int n_good, n_invalid, n_small, n_nan, n_bad;
RefList *reflections;
- FILE *fh;
+ FILE *fh = NULL;
int ntot = 0;
double total = 0.0;
char tmp[32];
diff --git a/tests/pr_pl_gradient_check.c b/tests/pr_pl_gradient_check.c
index c47356c1..cb68e0e3 100644
--- a/tests/pr_pl_gradient_check.c
+++ b/tests/pr_pl_gradient_check.c
@@ -238,7 +238,7 @@ static double test_gradients(Crystal *cr, double incr_val, int refine,
int nref;
int n_good, n_invalid, n_small, n_nan, n_bad;
RefList *reflections;
- FILE *fh;
+ FILE *fh = NULL;
int ntot = 0;
double total = 0.0;
char tmp[32];