mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
Fix cppcheck issues
This commit is contained in:
parent
d894cd1853
commit
6e786255e1
11 changed files with 33 additions and 19 deletions
|
@ -40,7 +40,6 @@ std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_
|
|||
{
|
||||
std::string ret;
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
unsigned char char_array_3[3];
|
||||
unsigned char char_array_4[4];
|
||||
|
||||
|
@ -62,6 +61,7 @@ std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_
|
|||
|
||||
if (i != 0)
|
||||
{
|
||||
int j = 0;
|
||||
for (j = i; j < 3; j++)
|
||||
char_array_3[j] = '\0';
|
||||
|
||||
|
@ -85,7 +85,6 @@ std::string base64_decode(std::string const& encoded_string)
|
|||
{
|
||||
int in_len = encoded_string.size();
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
int in_ = 0;
|
||||
unsigned char char_array_4[4], char_array_3[3];
|
||||
std::string ret;
|
||||
|
@ -111,6 +110,7 @@ std::string base64_decode(std::string const& encoded_string)
|
|||
|
||||
if (i != 0)
|
||||
{
|
||||
int j = 0;
|
||||
for (j = i; j < 4; j++)
|
||||
char_array_4[j] = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue