Skip to content

Commit 2d0bd5b

Browse files
committed
modify new GSRow
1 parent 803b571 commit 2d0bd5b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gstype_python.i

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
18181818
$4 = (size_t)PyInt_AsLong(PyLong_FromSsize_t(PyDict_Size($input)));
18191819
griddb::Container* tmpContainer;
18201820
if ($4 > 0) {
1821-
$1 = new GSRow**[$4];
1821+
$1 = new GSRow**[$4]();
18221822

18231823
$2 = (int*) malloc($4 * sizeof(int));
18241824
$3 = (char **) malloc($4 * sizeof(char*));
@@ -1844,7 +1844,7 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
18441844
PyErr_SetString(PyExc_ValueError, "Num rows of container is invalid.");
18451845
SWIG_fail;
18461846
}
1847-
$1[i] = new GSRow* [numRowOfContainer];
1847+
$1[i] = new GSRow* [numRowOfContainer]();
18481848
if ($1[i] == NULL) {
18491849
PyErr_SetString(PyExc_ValueError, "Memory allocation error");
18501850
SWIG_fail;
@@ -2038,7 +2038,7 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
20382038
GSContainer *mContainer = arg1->getGSContainerPtr();
20392039
GSType* typeList = arg1->getGSTypeList();
20402040

2041-
$1 = new GSRow*[$2];
2041+
$1 = new GSRow*[$2]();
20422042
if ($1 == NULL) {
20432043
PyErr_SetString(PyExc_ValueError, "Memory allocation error");
20442044
free((void*) typeList);

0 commit comments

Comments
 (0)