aboutsummaryrefslogtreecommitdiff
path: root/src/facetron.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-29 17:23:07 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:04 +0100
commite3eed0966702473e2146def38ce8664b4fe0acaa (patch)
tree542d318c65e4ead393541d4d0cbb850078aae500 /src/facetron.c
parenta784ead2cbac29e11bb9b09bfeeb8076749fe9a4 (diff)
facetron: Sanitise symmetry
Diffstat (limited to 'src/facetron.c')
-rw-r--r--src/facetron.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/facetron.c b/src/facetron.c
index 42a4bd1b..cdc911d1 100644
--- a/src/facetron.c
+++ b/src/facetron.c
@@ -358,6 +358,8 @@ int main(int argc, char *argv[])
}
}
+ if ( sym == NULL ) sym = strdup("1");
+
/* Get detector geometry */
det = get_detector_geometry(geomfile);
if ( det == NULL ) {