mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 02:07:59 +08:00
Problem: non-loop-variables initialized via loop initializer
Solution: move initialization to declaration
This commit is contained in:
parent
d4cc592387
commit
579aa5b440
@ -884,11 +884,11 @@ encode_base64 (const unsigned char *in_, int in_len_, char *out_, int out_len_)
|
|||||||
static const unsigned char base64enc_tab[65] =
|
static const unsigned char base64enc_tab[65] =
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
|
||||||
int ii, io;
|
int io = 0;
|
||||||
uint32_t v;
|
uint32_t v = 0;
|
||||||
int rem;
|
int rem = 0;
|
||||||
|
|
||||||
for (io = 0, ii = 0, v = 0, rem = 0; ii < in_len_; ii++) {
|
for (int ii = 0; ii < in_len_; ii++) {
|
||||||
unsigned char ch;
|
unsigned char ch;
|
||||||
ch = in_[ii];
|
ch = in_[ii];
|
||||||
v = (v << 8) | ch;
|
v = (v << 8) | ch;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user