lib: =0 and |= is equivalent to =
authorVolker Lendecke <vl@samba.org>
Fri, 25 Mar 2016 20:43:57 +0000 (21:43 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 3 May 2016 23:28:23 +0000 (01:28 +0200)
Just a small simplication I thought might be nice

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/base64.c

index de26b5b87020ce2e603666907a4daa3dcec85998..a4ce6fa324d9a4043fd7fbd78fa17dba369e33a1 100644 (file)
@@ -48,8 +48,7 @@ _PUBLIC_ DATA_BLOB base64_decode_data_blob_talloc(TALLOC_CTX *mem_ctx, const cha
                        n = byte_offset+1;
                } else {
                        d[byte_offset] |= (idx >> (bit_offset-2));
-                       d[byte_offset+1] = 0;
-                       d[byte_offset+1] |= (idx << (8-(bit_offset-2))) & 0xFF;
+                       d[byte_offset+1] = (idx << (8-(bit_offset-2))) & 0xFF;
                        n = byte_offset+2;
                }
                s++; i++;