summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-03-25 21:43:57 +0100
committerJeremy Allison <jra@samba.org>2016-05-04 01:28:23 +0200
commitf457535e33a35754c069232cb7a27556569b970c (patch)
tree40ae253ce96d5fdc182e873ae6e46eb7c3462113
parenta5fd779aa1393bf83e5dd693293a85b06d8c33c1 (diff)
downloadsamba-f457535e33a35754c069232cb7a27556569b970c.tar.gz
lib: =0 and |= is equivalent to =
Just a small simplication I thought might be nice Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--lib/util/base64.c3
1 files changed, 1 insertions, 2 deletions
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++;