git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5fd779
)
lib: =0 and |= is equivalent to =
author
Volker Lendecke
<vl@samba.org>
Fri, 25 Mar 2016 20:43:57 +0000
(21:43 +0100)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/lib/util/base64.c
b/lib/util/base64.c
index de26b5b87020ce2e603666907a4daa3dcec85998..a4ce6fa324d9a4043fd7fbd78fa17dba369e33a1 100644
(file)
--- 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++;