aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-08-26 16:58:51 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:56 +0100
commit3815343a496807de2d1e385b1c949a308fa3cc17 (patch)
tree8eccb6c24dffe0ad4306db1bcdd161e1009c98af /src
parent3da08caf3d5a0611b1e310e78ddeabf724d264c7 (diff)
compare_hkl: Don't crash if no point group given
Diffstat (limited to 'src')
-rw-r--r--src/compare_hkl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c
index 5a490771..b58e6d25 100644
--- a/src/compare_hkl.c
+++ b/src/compare_hkl.c
@@ -95,6 +95,10 @@ int main(int argc, char *argv[])
return 1;
}
+ if ( sym == NULL ) {
+ sym = strdup("1");
+ }
+
afile = strdup(argv[optind++]);
bfile = strdup(argv[optind]);