From fc441bafd638cb8913b9b71833c1a9f84b70f4f0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 29 Mar 2010 18:11:56 +0200 Subject: compare_hkl: Allow no -o parameter --- src/compare_hkl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/compare_hkl.c') diff --git a/src/compare_hkl.c b/src/compare_hkl.c index 50ca6282..63daf318 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -92,11 +92,6 @@ int main(int argc, char *argv[]) } - if ( outfile == NULL ) { - ERROR("You must specify the output filename with -o\n"); - return 1; - } - cell = load_cell_from_pdb("molecule.pdb"); ref1 = read_reflections(afile, NULL); if ( ref1 == NULL ) { @@ -127,7 +122,9 @@ int main(int argc, char *argv[]) } } - write_reflections(outfile, NULL, out, 1, cell); + if ( outfile != NULL ) { + write_reflections(outfile, NULL, out, 1, cell); + } return 0; } -- cgit v1.2.3