diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-09 04:26:56 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-09 04:26:56 +0000 |
commit | 33c16e75c986fef1a302d50698519d52cf261682 (patch) | |
tree | bbfc32abfa015e699012121415a7940df36d23cc /converter/other | |
parent | f968187c28728613d6897489139489c99f86360e (diff) | |
download | netpbm-mirror-33c16e75c986fef1a302d50698519d52cf261682.tar.gz netpbm-mirror-33c16e75c986fef1a302d50698519d52cf261682.tar.xz netpbm-mirror-33c16e75c986fef1a302d50698519d52cf261682.zip |
Fix crash when -name option doesn't contain an underscore
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1039 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pamtouil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pamtouil.c b/converter/other/pamtouil.c index 209ebf16..1a53be0f 100644 --- a/converter/other/pamtouil.c +++ b/converter/other/pamtouil.c @@ -97,7 +97,7 @@ parseCommandLine(int argc, char ** argv, /* Remove trailing "_icon" */ barPos = strrchr(cmdlineP->outname, '_'); - if (streq(barPos, "_icon")) + if (barPos && streq(barPos, "_icon")) *barPos = '\0'; } else { if (streq(cmdlineP->inputFilespec, "-")) |