Skip to content

Commit 1badacb

Browse files
read_single: make sure buf is initialised
1 parent b2ea860 commit 1badacb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/blob.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ read_single(pysqlite_Blob *self, Py_ssize_t offset)
124124
{
125125
assert(offset <= sqlite3_blob_bytes(self->blob));
126126

127-
unsigned long buf;
127+
unsigned long buf = 0;
128128
int rc;
129129
Py_BEGIN_ALLOW_THREADS
130130
rc = sqlite3_blob_read(self->blob, (void *)&buf, 1, (int)offset);

0 commit comments

Comments
 (0)