Skip to content

Commit 41c0cf7

Browse files
committed
add memset for GSColumnInfo object
1 parent 86b7f2b commit 41c0cf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gstype_python.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
if ($2 > 0) {
3030
$1 = (GSColumnInfo *) malloc($2*sizeof(GSColumnInfo));
3131
alloc = (int*) malloc($2*sizeof(int));
32+
memset($1, 0x0, $2*sizeof(GSColumnInfo));
3233
memset(alloc, 0x0, $2*sizeof(int));
3334

3435
i = 0;

0 commit comments

Comments
 (0)