aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-08-31 16:15:50 +0200
committerThomas White <taw@physics.org>2015-08-31 16:15:50 +0200
commitea0c9be77763ca695d646d4f4239c69eb68974fc (patch)
treec0fa3f1eeb891499dc625de999e91556d435c111 /src/partialator.c
parent50b3184ba52d7207c53e6e90f2d07e01ba16f66a (diff)
partialator: Make defaults agree with docs
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 5c67504b..a3fc712e 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -774,16 +774,15 @@ int main(int argc, char *argv[])
}
if ( infile == NULL ) {
- infile = strdup("-");
+ ERROR("Please give the input filename (with -i)\n");
+ return 1;
}
st = open_stream_for_read(infile);
if ( st == NULL ) {
ERROR("Failed to open input stream '%s'\n", infile);
return 1;
}
- /* Don't free "infile", because it's needed for the scaling report */
- /* Sanitise output filename */
if ( outfile == NULL ) {
outfile = strdup("partialator.hkl");
}