Commit 267fb962 authored by Ingo Meyer's avatar Ingo Meyer
Browse files

Merge branch 'develop'

parents 6b05acdb b9f7ef38
...@@ -111,7 +111,8 @@ int cache_add_file(const char *git_filepath) { ...@@ -111,7 +111,8 @@ int cache_add_file(const char *git_filepath) {
++current_line_index; ++current_line_index;
if(current_line_index >= linenumber_to_timestamp_size) { if(current_line_index >= linenumber_to_timestamp_size) {
linenumber_to_timestamp_size += LINENUMBER_TO_TIMESTAMP_ARRAY_INCREMENT; linenumber_to_timestamp_size += LINENUMBER_TO_TIMESTAMP_ARRAY_INCREMENT;
enlarged_linenumber_to_timestamp = realloc(linenumber_to_timestamp, linenumber_to_timestamp_size); enlarged_linenumber_to_timestamp = realloc(linenumber_to_timestamp,
sizeof(long) * linenumber_to_timestamp_size);
if(enlarged_linenumber_to_timestamp == NULL) { if(enlarged_linenumber_to_timestamp == NULL) {
free(linenumber_to_timestamp); free(linenumber_to_timestamp);
return 0; return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment