From ea0c9be77763ca695d646d4f4239c69eb68974fc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 31 Aug 2015 16:15:50 +0200 Subject: partialator: Make defaults agree with docs --- src/partialator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/partialator.c') 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"); } -- cgit v1.2.3