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;