Test that blobs actually round trip data. I want to rewrite a thing.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4025 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-11-09 02:56:41 +00:00
parent d3d4b1a13c
commit 98a7753a55
2 changed files with 16 additions and 1 deletions

View File

@ -378,6 +378,7 @@ bool tf_ssb_db_blob_get(tf_ssb_t* ssb, const char* id, uint8_t** out_blob, size_
{
const uint8_t* blob = sqlite3_column_blob(statement, 0);
int size = sqlite3_column_bytes(statement, 0);
printf("bytes = %d\n", size);
if (out_blob)
{
*out_blob = tf_malloc(size + 1);