From 53f71ffbc5b0202e872bd606c91130d99145b783 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 25 Jun 2019 17:10:33 +0200 Subject: partial_sim: Add missing initialisations --- src/partial_sim.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/partial_sim.c') diff --git a/src/partial_sim.c b/src/partial_sim.c index 0ea45ad4..b14a51c6 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -844,6 +844,10 @@ int main(int argc, char *argv[]) image.spectrum = NULL; image.serial = 0; image.event = NULL; + image.hit = 0; + image.n_indexing_tries = 1; + image.features = NULL; + image.peak_resolution = 0.0; STATUS("Simulation parameters:\n"); STATUS(" Photon energy: %.2f eV (wavelength %.5f A)\n", -- cgit v1.2.3