| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 22430ec commit 1a74a2d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ git_strarray *StrArrayConverter::Convert(Handle<v8::Value> val) { | |||
| 25 | 25 | } | |
| 26 | 26 | ||
| 27 | 27 | git_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)); | ||
| 29 | 29 | result->count = val->Length(); | |
| 30 | 30 | result->strings = (char **)malloc(sizeof(char*) * result->count); | |
| 31 | 31 | ||
@@ -47,7 +47,7 @@ git_strarray* StrArrayConverter::ConvertString(Handle<String> val) { | |||
| 47 | 47 | } | |
| 48 | 48 | ||
| 49 | 49 | git_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)); | ||
| 51 | 51 | result->count = argc; | |
| 52 | 52 | result->strings = (char **)malloc(sizeof(char*) * result->count); | |
| 53 | 53 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments