From 882e227f6b7aa3d8f183a87dfd2456a76874e25c Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 1 Sep 2016 01:44:21 +0000 Subject: Fix handling of when the Pnmremap or rename of the output file file git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2812 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmquantall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/pnmquantall') 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 -- cgit 1.4.1