aboutsummaryrefslogtreecommitdiff
path: root/src/geometry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-11-18 13:54:59 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:06 +0100
commit66824469cd43ce5dcc7df58f631ce1791dc7058c (patch)
treeb92eade73a0121c6a0944a9dacb59a8c96a69ff3 /src/geometry.c
parent763a64fc497458e1920da555d8f5d4c831b21fc4 (diff)
Make sure coordinates are initialised
Diffstat (limited to 'src/geometry.c')
-rw-r--r--src/geometry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/geometry.c b/src/geometry.c
index e391715c..0ef1f1c3 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -35,6 +35,8 @@ static signed int locate_peak(double x, double y, double z, double k,
signed int found = -1;
const double den = k + z;
+ *xdap = -1; *ydap = -1;
+
for ( p=0; p<det->n_panels; p++ ) {
double xd, yd, cl;