aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-25 17:10:33 +0200
committerThomas White <taw@physics.org>2019-06-25 17:10:33 +0200
commit53f71ffbc5b0202e872bd606c91130d99145b783 (patch)
tree31463791c06fe97c8434d6a9652ffbbafd2c648e /src
parent46d7ed714efab8c7db8ee253f5ea5eb0f588631b (diff)
partial_sim: Add missing initialisations
Diffstat (limited to 'src')
-rw-r--r--src/partial_sim.c4
1 files changed, 4 insertions, 0 deletions
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",