nostrdb: cleanup previous patch
I wanted to not amend this since we've already applied it in the nostrdb-update branch on damus and I don't want to conflict Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
969a2b656e
commit
6e7b3b94d7
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user