about summary refs log tree commit diff
path: root/converter/other/pamtouil.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other/pamtouil.c')
-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 f17fd94b..b9972abd 100644
--- a/converter/other/pamtouil.c
+++ b/converter/other/pamtouil.c
@@ -95,7 +95,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, "-"))