From 8ed359327c6582395058cee112c66ea338dfe0f9 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 3 Jan 2023 00:49:21 +0000 Subject: [PATCH] Appease clang. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4103 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssb.db.c b/src/ssb.db.c index 6066ef1d..1a80c2cf 100644 --- a/src/ssb.db.c +++ b/src/ssb.db.c @@ -1024,7 +1024,7 @@ static following_t* _get_following(tf_ssb_t* ssb, const char* id, following_t*** entry = tf_malloc(sizeof(following_t)); (*following)[index] = entry; (*following_count)++; - *entry = (following_t) { 0 }; + memset(entry, 0, sizeof(*entry)); snprintf(entry->id, sizeof(entry->id), "%s", id); entry->depth = depth;