diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-10 18:20:56 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-10 18:20:56 +0000 |
commit | 78b0f94c76e7d176bf24ab2c9a49f67b32537cc2 (patch) | |
tree | 3308fbb214586e49cf3a1f56d18cddd513815ba7 | |
parent | 2481427b039ec71d46a3cc160cce02b99054d6e7 (diff) | |
download | rockbox-78b0f94c76e7d176bf24ab2c9a49f67b32537cc2.tar.gz rockbox-78b0f94c76e7d176bf24ab2c9a49f67b32537cc2.zip |
Proper initialization of static variables in codeclib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29853 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/lib/codeclib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c index bb736ad887..36f4279941 100644 --- a/apps/codecs/lib/codeclib.c +++ b/apps/codecs/lib/codeclib.c | |||
@@ -29,9 +29,9 @@ | |||
29 | 29 | ||
30 | /* The following variables are used by codec_malloc() to make use of free RAM | 30 | /* The following variables are used by codec_malloc() to make use of free RAM |
31 | * within the statically allocated codec buffer. */ | 31 | * within the statically allocated codec buffer. */ |
32 | static size_t mem_ptr; | 32 | static size_t mem_ptr = 0; |
33 | static size_t bufsize; | 33 | static size_t bufsize = 0; |
34 | static unsigned char* mallocbuf; | 34 | static unsigned char* mallocbuf = NULL; |
35 | 35 | ||
36 | int codec_init(void) | 36 | int codec_init(void) |
37 | { | 37 | { |