about summary refs log tree commit diff
path: root/other/pambayer.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-09-05 03:20:24 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-09-05 03:20:24 +0000
commitec93ed84ae933a65eea0873c85ba1d5766426d45 (patch)
tree85eec236c752913b6f12f53fc1c2511a7ed8643b /other/pambayer.c
parentdbce489c0af38aa596c871612dc42b29c72842f3 (diff)
downloadnetpbm-mirror-ec93ed84ae933a65eea0873c85ba1d5766426d45.tar.gz
netpbm-mirror-ec93ed84ae933a65eea0873c85ba1d5766426d45.tar.xz
netpbm-mirror-ec93ed84ae933a65eea0873c85ba1d5766426d45.zip
Fix crash/failure when you specify input file name
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@982 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other/pambayer.c')
-rw-r--r--other/pambayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/other/pambayer.c b/other/pambayer.c
index b4eaae75..f8ce0db8 100644
--- a/other/pambayer.c
+++ b/other/pambayer.c
@@ -80,6 +80,8 @@ parseCommandLine(int argc, char ** argv,
     else if (argc-1 > 1)
         pm_error("There is at most one argument -- the input file.  "
                  "You specified %u", argc-1);
+    else
+        cmdlineP->inputFilespec = argv[1];
 
     if (!typeSpec)
         pm_error("You must specify the -type option");