diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index a2464ac6..990bdf1d 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -7081,6 +7081,7 @@ static struct ndb_blocks *ndb_note_to_blocks(struct ndb_note *note) const char *content; size_t content_len; struct ndb_blocks *blocks; + unsigned char *buffer; content = ndb_note_content(note); content_len = ndb_note_content_length(note); @@ -7089,7 +7090,7 @@ static struct ndb_blocks *ndb_note_to_blocks(struct ndb_note *note) if (content_len >= INT32_MAX) return NULL; - unsigned char *buffer = malloc(2<<18); // Not carefully calculated, but ok because we will not need this once we switch to the local relay model + buffer = malloc(2<<18); // Not carefully calculated, but ok because we will not need this once we switch to the local relay model if (!buffer) return NULL;