encoding.base64: vfmt base64.c.v

pull/12600/head
Delyan Angelov 2021-11-28 20:37:08 +02:00
parent 31fe02de8c
commit 87029e5707
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ pub fn encode_str(data string) string {
fn alloc_and_encode(src &byte, len int) string {
if len == 0 {
return ''
}
}
size := 4 * ((len + 2) / 3)
if size <= 0 {
return ''