We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67dce7d commit 9a9a025Copy full SHA for 9a9a025
src/index_entry.nobj.lua
@@ -37,7 +37,7 @@ typedef git_index_entry IndexEntry;
37
destructor {
38
c_source [[
39
if(${this}->path != NULL) {
40
- free(${this}->path);
+ free((void *)${this}->path);
41
}
42
free(${this});
43
]]
@@ -94,7 +94,7 @@ typedef git_index_entry IndexEntry;
94
var_in{"const char *", "val"},
95
96
97
98
99
char * path_buf = malloc(${val_len});
100
strncpy(path_buf, ${val}, ${val_len});
0 commit comments