From 07c121044a821cc98c84433ae23bbe3fc04546db Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 22 Jul 2023 01:24:58 +0000 Subject: [PATCH] Fix a crash uploading blobs. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4359 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.js.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssb.js.c b/src/ssb.js.c index 273b31c2..2e17eda9 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -234,7 +234,7 @@ void _tf_ssb_blob_store_callback(const char* id, bool is_new, void* user_data) static JSValue _tf_ssb_blobStore(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv) { blob_store_t* store = tf_malloc(sizeof(blob_store_t)); - *store = (blob_store_t) { 0 }; + *store = (blob_store_t) { .context = context }; JSValue result = JS_NewPromiseCapability(context, store->promise); tf_ssb_t* ssb = JS_GetOpaque(this_val, _tf_ssb_classId);