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);