summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-11-04 22:20:31 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-11-04 22:20:31 +0000
commitc8f143fed88ca1a60c95cccfac01ac716c68e442 (patch)
tree0eef5f01fcde496f4b1905e3e686e3fba01d0528 /lib
parentf772d56c617a8d2ceb794a4bc79dd6dc301ce875 (diff)
downloadrockbox-c8f143fed88ca1a60c95cccfac01ac716c68e442.tar.gz
rockbox-c8f143fed88ca1a60c95cccfac01ac716c68e442.tar.bz2
rockbox-c8f143fed88ca1a60c95cccfac01ac716c68e442.zip
Cleanup and oops spotted by Alexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib')
-rw-r--r--lib/skin_parser/skin_buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/skin_parser/skin_buffer.c b/lib/skin_parser/skin_buffer.c
index 608b03434d..05a46658d4 100644
--- a/lib/skin_parser/skin_buffer.c
+++ b/lib/skin_parser/skin_buffer.c
@@ -66,9 +66,9 @@ struct malloc_object {
void* object;
struct malloc_object *next;
};
-struct malloc_object *first = NULL, *last = NULL;
+static struct malloc_object *first = NULL, *last = NULL;
-void skin_free_malloced(void)
+static void skin_free_malloced(void)
{
struct malloc_object *obj = first, *this;
while (obj)
@@ -116,6 +116,7 @@ void* skin_buffer_alloc(size_t size)
first = last = obj;
else
last->next = obj;
+ last = obj;
retval = obj->object;
#else
retval = malloc(size);