about summary refs log tree commit diff
path: root/lib/libpam.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-03-10 02:46:35 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-03-10 02:46:35 +0000
commit8ac99df4d1cecc9bf04dd16b8d0bd69a3eaa1e15 (patch)
treeab21a583e9098e22b2a8eae5bfc42a373449faab /lib/libpam.c
parent9f9d0174b5750e58cbdb05abcd3f146cc7fd8ac3 (diff)
downloadnetpbm-mirror-8ac99df4d1cecc9bf04dd16b8d0bd69a3eaa1e15.tar.gz
netpbm-mirror-8ac99df4d1cecc9bf04dd16b8d0bd69a3eaa1e15.tar.xz
netpbm-mirror-8ac99df4d1cecc9bf04dd16b8d0bd69a3eaa1e15.zip
Remove nonsensical tuple type check from pnm_makerowrgb
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3168 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpam.c')
-rw-r--r--lib/libpam.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libpam.c b/lib/libpam.c
index 1baf5452..a8f140b3 100644
--- a/lib/libpam.c
+++ b/lib/libpam.c
@@ -1183,11 +1183,9 @@ pnm_makerowrgb(const struct pam * const pamP,
             pm_error("allocation depth %u passed to pnm_makerowrgb().  "
                      "Must be at least 3.", allocationDepth(pamP));
 
-        if (strncmp(pamP->tuple_type, "RGB", 3) != 0) {
-            for (col = 0; col < pamP->width; ++col) {
-                tuple const thisTuple = tuplerow[col];
-                thisTuple[2] = thisTuple[1] = thisTuple[0];
-            }
+        for (col = 0; col < pamP->width; ++col) {
+            tuple const thisTuple = tuplerow[col];
+            thisTuple[2] = thisTuple[1] = thisTuple[0];
         }
     }
 }