about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-12-09 04:26:56 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-12-09 04:26:56 +0000
commit33c16e75c986fef1a302d50698519d52cf261682 (patch)
treebbfc32abfa015e699012121415a7940df36d23cc /converter/other
parentf968187c28728613d6897489139489c99f86360e (diff)
downloadnetpbm-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.c2
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, "-"))