aboutsummaryrefslogtreecommitdiff
path: root/src/geoptimiser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/geoptimiser.c')
-rw-r--r--src/geoptimiser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c
index 4144bba2..dda53adc 100644
--- a/src/geoptimiser.c
+++ b/src/geoptimiser.c
@@ -2261,6 +2261,7 @@ static int save_data_to_png(char *filename, struct enhanced_det *edet,
im.det = edet->det;
im.width = edet->width;
im.height = edet->height;
+ im.bad = NULL;
im.dp = malloc(edet->det->n_panels*sizeof(float *));
if ( im.dp == NULL ) {
ERROR("Failed to allocate data\n");