about summary refs log tree commit diff
path: root/editor/pnmquantall
diff options
context:
space:
mode:
Diffstat (limited to 'editor/pnmquantall')
-rwxr-xr-xeditor/pnmquantall4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/pnmquantall b/editor/pnmquantall
index 844fc13d..41cc6721 100755
--- a/editor/pnmquantall
+++ b/editor/pnmquantall
@@ -169,7 +169,7 @@ sub remapFiles($$$$) {
             my $pnmremapTermStatus = system($pnmremapCmd);
 
             if ($pnmremapTermStatus != 0) {
-                $errorR =
+                $$errorR =
                     "Shell command to quantize '$inFileName'  failed:  " .
                     "'$pnmremapCmd'";
             } else {
@@ -177,7 +177,7 @@ sub remapFiles($$$$) {
 
                 unlink($newFileName);
                 rename($outputFileName, $newFileName)
-                    or $errorR = "Rename to '$newFileName' failed.";
+                    or $$errorR = "Rename to '$newFileName' failed.";
             }
         }
         unlink($outputFileName);  # In case something failed