Skip to content

Commit 32e4121

Browse files
anmolsarmamgreter
authored andcommitted
Fix allocation of pointer array (sizeof void*)
1 parent aa4dbbf commit 32e4121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sass_values.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ extern "C" {
210210
v->list.tag = SASS_LIST;
211211
v->list.length = len;
212212
v->list.separator = sep;
213-
v->list.values = (union Sass_Value**) calloc(len, sizeof(union Sass_Value));
213+
v->list.values = (union Sass_Value**) calloc(len, sizeof(union Sass_Value*));
214214
if (v->list.values == 0) { free(v); return 0; }
215215
return v;
216216
}

0 commit comments

Comments
 (0)