Unverified Commit 9c402600 by Edward Thomson Committed by GitHub

Merge pull request #5053 from tniessen/cf-check-array-alloc-result

config_file: check result of git_array_alloc
parents ed959ca2 cc8a9892
......@@ -678,6 +678,7 @@ static int parse_include(git_config_parser *reader,
return result;
include = git_array_alloc(reader->file->includes);
GIT_ERROR_CHECK_ALLOC(include);
memset(include, 0, sizeof(*include));
git_array_init(include->includes);
include->path = git_buf_detach(&path);
......
Markdown is supported
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