about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-10-10 17:35:49 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-10-10 17:35:49 +0000
commitaf073448b0e5940e0fc35b58e1de92f88fcd3aa6 (patch)
tree0c0e670c26acf04a8e6f5f922c9a8ac3800b1f25 /lib
parent8d7a4862beb527d1454de29409be7ad37102eb51 (diff)
downloadnetpbm-mirror-af073448b0e5940e0fc35b58e1de92f88fcd3aa6.tar.gz
netpbm-mirror-af073448b0e5940e0fc35b58e1de92f88fcd3aa6.tar.xz
netpbm-mirror-af073448b0e5940e0fc35b58e1de92f88fcd3aa6.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4744 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/libpgm1.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libpgm1.c b/lib/libpgm1.c
index ded55f9b..43458f8a 100644
--- a/lib/libpgm1.c
+++ b/lib/libpgm1.c
@@ -127,9 +127,6 @@ pgm_validateComputableMaxval(gray const maxval) {
        value is greater than the maxval.
     */
 
-    if (maxval == 0)
-        pm_error("Maxval is zero.  Must be at least one.");
-
     if (maxval > INT_MAX-1)
         pm_error("Maxval (%u) is too large to be processed", maxval);
 }