Commit ee14153f authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

realrtsp: initialize *all* the array

(cherry picked from commit 520eaf2f)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 663ceb64
...@@ -36,18 +36,18 @@ static char *b64_decode(const char *in, char *out, int *size) { ...@@ -36,18 +36,18 @@ static char *b64_decode(const char *in, char *out, int *size) {
int i,k; int i,k;
unsigned int j; unsigned int j;
for (i = 0; i < 255; i++) { for( i = 0; i < 256; i++ )
dtable[i] = 0x80; dtable[i] = 0x80;
}
for (i = 'A'; i <= 'Z'; i++) { for( i = 'A'; i <= 'Z'; i++ )
dtable[i] = 0 + (i - 'A'); dtable[i] = 0 + (i - 'A');
}
for (i = 'a'; i <= 'z'; i++) { for( i = 'a'; i <= 'z'; i++ )
dtable[i] = 26 + (i - 'a'); dtable[i] = 26 + (i - 'a');
}
for (i = '0'; i <= '9'; i++) { for( i = '0'; i <= '9'; i++ )
dtable[i] = 52 + (i - '0'); dtable[i] = 52 + (i - '0');
}
dtable['+'] = 62; dtable['+'] = 62;
dtable['/'] = 63; dtable['/'] = 63;
dtable['='] = 0; dtable['='] = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment