summaryrefslogtreecommitdiffstats
path: root/lib/skin_parser/skin_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_buffer.c')
-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);