From 31e8b89a14c226987f7adf7bbe7010a0b54eb004 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Tue, 8 Dec 2015 11:41:11 +0100 Subject: [PATCH] forgot allocation --- tools/genversion.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/genversion.cpp b/tools/genversion.cpp index c6af106c1..2c097c616 100644 --- a/tools/genversion.cpp +++ b/tools/genversion.cpp @@ -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; }