aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;