From 315d650d273a52ff22350ed386faecf677ce8aa5 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 22 Jul 2023 01:33:06 +0000 Subject: [PATCH] Same bug twice. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4360 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 2e17eda9..30b7bc02 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -138,7 +138,7 @@ static void _tf_ssb_appendMessageWithIdentity_callback(const char* id, bool veri static JSValue _tf_ssb_appendMessageWithIdentity(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv) { append_message_t* async = tf_malloc(sizeof(append_message_t)); - *async = (append_message_t) { 0 }; + *async = (append_message_t) { .context = context }; JSValue result = JS_NewPromiseCapability(context, async->promise); tf_ssb_t* ssb = JS_GetOpaque(this_val, _tf_ssb_classId);