aboutsummaryrefslogtreecommitdiff
path: root/src/ambigator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ambigator.c')
-rw-r--r--src/ambigator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ambigator.c b/src/ambigator.c
index 5f7f921b..028ed4bb 100644
--- a/src/ambigator.c
+++ b/src/ambigator.c
@@ -467,7 +467,7 @@ static void detwin(struct cc_list *ccs, int n_crystals, int *assignments,
f /= p;
g /= q;
- fprintf(fh, "%5.3f %5.3f\n", f, g);
+ if ( fh != NULL ) fprintf(fh, "%5.3f %5.3f\n", f, g);
mf += f;
nmf++;