aboutsummaryrefslogtreecommitdiff
path: root/src/hdfsee-render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdfsee-render.c')
-rw-r--r--src/hdfsee-render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hdfsee-render.c b/src/hdfsee-render.c
index a64832a0..358847a4 100644
--- a/src/hdfsee-render.c
+++ b/src/hdfsee-render.c
@@ -88,7 +88,8 @@ static float *get_binned_panel(struct image *image, int binning,
v = image->dp[pi][fs+ss*fw];
total += v;
- if ( image->bad[pi][fs+ss*fw] ) bad = 1;
+ if ( (image->bad != NULL)
+ && (image->bad[pi][fs+ss*fw]) ) bad = 1;
}
}