From 682459d6770fdd96caa94d102eebe2c4d72692c1 Mon Sep 17 00:00:00 2001 From: Buschel Date: Tue, 10 May 2011 18:20:56 +0000 Subject: [PATCH] Proper initialization of static variables in codeclib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29853 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/lib/codeclib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c index bb736ad88..36f427994 100644 --- a/apps/codecs/lib/codeclib.c +++ b/apps/codecs/lib/codeclib.c @@ -29,9 +29,9 @@ /* The following variables are used by codec_malloc() to make use of free RAM * within the statically allocated codec buffer. */ -static size_t mem_ptr; -static size_t bufsize; -static unsigned char* mallocbuf; +static size_t mem_ptr = 0; +static size_t bufsize = 0; +static unsigned char* mallocbuf = NULL; int codec_init(void) { -- 2.11.4.GIT