summaryrefslogtreecommitdiffstats
path: root/firmware/common/dircache.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-05-30 18:13:18 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-05-30 18:13:18 +0000
commit5127cfad1d997863fa7e8f490c89293b4d0119e7 (patch)
tree556145cff9a1db5ce337ccf3a603c1f1cbd0722e /firmware/common/dircache.c
parent62c88c04de7b4794f124987de68e2e5f41975701 (diff)
downloadrockbox-5127cfad1d997863fa7e8f490c89293b4d0119e7.tar.gz
rockbox-5127cfad1d997863fa7e8f490c89293b4d0119e7.tar.bz2
rockbox-5127cfad1d997863fa7e8f490c89293b4d0119e7.zip
Fixed incorrect memory allocation bug with tagcache.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10023 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/dircache.c')
-rw-r--r--firmware/common/dircache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index e5ee77c311..e1b592f005 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -37,13 +37,12 @@
#include "kernel.h"
#include "usb.h"
#include "file.h"
+#include "buffer.h"
/* Queue commands. */
#define DIRCACHE_BUILD 1
#define DIRCACHE_STOP 2
-extern char *audiobuf;
-
#define MAX_OPEN_DIRS 8
DIRCACHED opendirs[MAX_OPEN_DIRS];
@@ -668,6 +667,8 @@ void dircache_init(void)
{
int i;
+ dircache_initialized = false;
+
memset(opendirs, 0, sizeof(opendirs));
for (i = 0; i < MAX_OPEN_DIRS; i++)
{