File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
generate/templates/manual/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ git_strarray *StrArrayConverter::Convert(Handle<v8::Value> val) {
2525}
2626
2727git_strarray *StrArrayConverter::ConvertArray (Array *val) {
28- git_strarray *result = (git_strarray *)malloc (sizeof (git_strarray* ));
28+ git_strarray *result = (git_strarray *)malloc (sizeof (git_strarray));
2929 result->count = val->Length ();
3030 result->strings = (char **)malloc (sizeof (char *) * result->count );
3131
@@ -47,7 +47,7 @@ git_strarray* StrArrayConverter::ConvertString(Handle<String> val) {
4747}
4848
4949git_strarray *StrArrayConverter::ConstructStrArray (int argc, char ** argv) {
50- git_strarray *result = (git_strarray *)malloc (sizeof (git_strarray* ));
50+ git_strarray *result = (git_strarray *)malloc (sizeof (git_strarray));
5151 result->count = argc;
5252 result->strings = (char **)malloc (sizeof (char *) * result->count );
5353
You can’t perform that action at this time.
0 commit comments