From 3815343a496807de2d1e385b1c949a308fa3cc17 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 26 Aug 2010 16:58:51 +0200 Subject: compare_hkl: Don't crash if no point group given --- src/compare_hkl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compare_hkl.c') 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]); -- cgit v1.2.3