forgot allocation

This commit is contained in:
Tim Felgentreff 2015-12-08 11:41:11 +01:00
parent 7c62bfaf95
commit 31e8b89a14

View file

@ -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;
} }