Skip to content

Commit 664d5a5

Browse files
committed
correct missing of initialization for BLOB
1 parent 144a91f commit 664d5a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gstype_python.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ static bool convertToFieldWithType(GSRow *row, int column, PyObject* value, GSTy
706706
break;
707707
}
708708
case GS_TYPE_BLOB: {
709-
GSBlob blobValTmp;
709+
GSBlob blobValTmp = {0};
710710
GSBlob *blobVal = &blobValTmp;
711711
vbool = convertObjectToBlob(value, &blobVal->size, (void**) &blobVal->data);
712712
if (!vbool) {
@@ -1489,7 +1489,7 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
14891489
break;
14901490
}
14911491
case GS_TYPE_BLOB: {
1492-
GSBlob blobValue;
1492+
GSBlob blobValue = {0};
14931493
ret = gsGetRowFieldAsBlob(row, (int32_t) i, &blobValue);
14941494
PyList_SetItem(outList, i, PyByteArray_FromStringAndSize((const char*)blobValue.data, blobValue.size));
14951495
break;

0 commit comments

Comments
 (0)