From 3029f41a6559e856defe64721fe98ac3287cef91 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 23 Oct 2001 17:26:43 +0000 Subject: [PATCH] disallow omitting the output filename --- pdf2swf/pdf2swf.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index a99e176..c0dee56 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -211,6 +211,11 @@ int main(int argn, char *argv[]) srand48(time(0)); processargs(argn, argv); initLog(0,-1,0,0,-1,loglevel); + if(!outputname) + { + fprintf(stderr, "Please use -o to specify an output file\n"); + exit(1); + } // test if the page range is o.k. is_in_range(0x7fffffff, pagerange); -- 1.7.10.4