diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-14 02:24:32 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-14 02:24:32 +0000 |
commit | 403a10b527eafb553e2bea05d2ea8d89beac558c (patch) | |
tree | a39cb54b7a026f2e9a572ba75eb5194a5257143c /converter | |
parent | fdf96d2fadfeb50b596aea7fe4c6bbe4bdac33ea (diff) | |
download | netpbm-mirror-403a10b527eafb553e2bea05d2ea8d89beac558c.tar.gz netpbm-mirror-403a10b527eafb553e2bea05d2ea8d89beac558c.tar.xz netpbm-mirror-403a10b527eafb553e2bea05d2ea8d89beac558c.zip |
Fix crash when no argument introduced by recent cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4243 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/ppm/picttoppm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/ppm/picttoppm.c b/converter/ppm/picttoppm.c index cd36bb50..ec701cfc 100644 --- a/converter/ppm/picttoppm.c +++ b/converter/ppm/picttoppm.c @@ -111,7 +111,7 @@ parseCommandLine(int argc, if (!verboseSpec) cmdlineP->verbose = 0; - if (argc-1 < 0) + if (argc-1 < 1) cmdlineP->inputFileName = "-"; else { cmdlineP->inputFileName = argv[1]; |