aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-08 10:57:57 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:57 +0100
commit52f8c8aa18ca79fb6af5acf458dd22448d0944fc (patch)
treee310205523795a7f5c6bb176290cc86eec8382ff /src
parent75ce3027377936edc40fe1a62e94903796a3ac99 (diff)
Initialise no_index in the panel
Diffstat (limited to 'src')
-rw-r--r--src/detector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c
index ce2d5738..70666f8e 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -246,6 +246,7 @@ struct detector *get_detector_geometry(const char *filename)
det->panels[i].clen = -1;
det->panels[i].res = -1;
det->panels[i].badrow = '0';
+ det->panels[i].no_index = 0;
}
continue;
@@ -378,6 +379,7 @@ struct detector *get_detector_geometry(const char *filename)
" panel %i\n", i);
reject = 1;
}
+ /* It's not a problem if "no_index" is still zero */
}