From f457535e33a35754c069232cb7a27556569b970c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Mar 2016 21:43:57 +0100 Subject: lib: =0 and |= is equivalent to = Just a small simplication I thought might be nice Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/util/base64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/util/base64.c b/lib/util/base64.c index de26b5b8702..a4ce6fa324d 100644 --- a/lib/util/base64.c +++ b/lib/util/base64.c @@ -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++; -- cgit v1.2.1