aboutsummaryrefslogtreecommitdiff
path: root/src/partial_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-29 11:07:07 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:30 +0100
commit388a397d1a04231064271037b7184204970a05e2 (patch)
tree30586db7a63530a9b0c079ee6c89cacfdf91dae6 /src/partial_sim.c
parentd5f2f7ee1f4b1a13e5767ef6c38fc9706603e5d7 (diff)
Check the right variable (whoops)
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r--src/partial_sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 7c9ffc01..435f28ce 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -220,7 +220,7 @@ int main(int argc, char *argv[])
return 1;
}
det = get_detector_geometry(geomfile);
- if ( cell == NULL ) {
+ if ( det == NULL ) {
ERROR("Failed to read geometry from '%s'\n", geomfile);
return 1;
}