[vlc-devel] commit: realrtsp: initialize *all* the array ( Rémi Duraffort )
git version control
git at videolan.org
Fri Dec 12 22:17:07 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec 12 21:48:45 2008 +0100| [520eaf2ff5ccc48efd800dae1fffa628ca5ec0aa] | committer: Rémi Duraffort
realrtsp: initialize *all* the array
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=520eaf2ff5ccc48efd800dae1fffa628ca5ec0aa
---
modules/access/rtsp/real_sdpplin.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/access/rtsp/real_sdpplin.c b/modules/access/rtsp/real_sdpplin.c
index 32c1b68..3f40947 100644
--- a/modules/access/rtsp/real_sdpplin.c
+++ b/modules/access/rtsp/real_sdpplin.c
@@ -36,18 +36,18 @@ static char *b64_decode(const char *in, char *out, int *size) {
int i,k;
unsigned int j;
- for (i = 0; i < 255; i++) {
+ for( i = 0; i < 256; i++ )
dtable[i] = 0x80;
- }
- for (i = 'A'; i <= 'Z'; i++) {
+
+ for( i = 'A'; i <= 'Z'; i++ )
dtable[i] = 0 + (i - 'A');
- }
- for (i = 'a'; i <= 'z'; i++) {
+
+ for( i = 'a'; i <= 'z'; i++ )
dtable[i] = 26 + (i - 'a');
- }
- for (i = '0'; i <= '9'; i++) {
+
+ for( i = '0'; i <= '9'; i++ )
dtable[i] = 52 + (i - '0');
- }
+
dtable['+'] = 62;
dtable['/'] = 63;
dtable['='] = 0;
More information about the vlc-devel
mailing list