summaryrefslogtreecommitdiffstats
path: root/src/compiler/blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/blob.c')
-rw-r--r--src/compiler/blob.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/compiler/blob.c b/src/compiler/blob.c
index 65e1376e160..2e20a11dc0c 100644
--- a/src/compiler/blob.c
+++ b/src/compiler/blob.c
@@ -99,19 +99,13 @@ align_blob_reader(struct blob_reader *blob, size_t alignment)
blob->current = blob->data + ALIGN(blob->current - blob->data, alignment);
}
-struct blob *
-blob_create()
+void
+blob_init(struct blob *blob)
{
- struct blob *blob = (struct blob *) malloc(sizeof(struct blob));
- if (blob == NULL)
- return NULL;
-
blob->data = NULL;
blob->allocated = 0;
blob->size = 0;
blob->out_of_memory = false;
-
- return blob;
}
bool