aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c
index 7e850320..d11a3aa0 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -55,7 +55,7 @@ void write_reflections(const char *filename, ReflItemList *items,
double intensity, s, sigma;
char ph[32];
- if ( counts ) {
+ if ( counts != NULL ) {
N = lookup_count(counts, h, k, l);
} else {
N = 1;