forgot allocation
This commit is contained in:
parent
7c62bfaf95
commit
31e8b89a14
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ int main(int argc, char * argv[]) {
|
||||||
file = fopen(gitrevfile, "r");
|
file = fopen(gitrevfile, "r");
|
||||||
free(gitrevfile);
|
free(gitrevfile);
|
||||||
if (file) {
|
if (file) {
|
||||||
|
git_rev = (char*)calloc(sizeof(char), 1024);
|
||||||
if (fscanf(file, "%s", &git_rev) != 1) {
|
if (fscanf(file, "%s", &git_rev) != 1) {
|
||||||
new_ver[4] = -1;
|
new_ver[4] = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue