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");
free(gitrevfile);
if (file) {
git_rev = (char*)calloc(sizeof(char), 1024);
if (fscanf(file, "%s", &git_rev) != 1) {
new_ver[4] = -1;
}