fix warning

This commit is contained in:
XieHan
2021-05-20 17:21:21 +08:00
parent 81dd9c841a
commit 3faf1def9b
+2 -2
View File
@@ -380,7 +380,7 @@ static int __encode_auth(const char *p, std::string& auth)
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
b64 = BIO_push(b64, bmem);
BIO_write(b64, p, strlen(p));
BIO_flush(b64);
(void)BIO_flush(b64);
BIO_get_mem_ptr(b64, &bptr);
if (bptr->length > 0)
@@ -390,9 +390,9 @@ static int __encode_auth(const char *p, std::string& auth)
}
BIO_free_all(b64);
return 0;
}
BIO_free_all(b64);
}