diff options
-rw-r--r-- | src/partialator.c | 5 |
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"); } |