diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-12-27 21:04:28 +0200 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-12-30 12:33:40 +0200 |
commit | dfda1cf507f91b53e73345c9053f6a61587db984 (patch) | |
tree | eb8810cb57010d8f7450d9e29b66c375621ce59e /src/ident.c | |
parent | 0beb7fe42726671304161a1aecee4924617b7c96 (diff) | |
download | libgit2-dfda1cf507f91b53e73345c9053f6a61587db984.tar.gz |
Check for OOM
Diffstat (limited to 'src/ident.c')
-rw-r--r-- | src/ident.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ident.c b/src/ident.c index 51630879d..6bc80abc7 100644 --- a/src/ident.c +++ b/src/ident.c @@ -115,6 +115,8 @@ static int ident_apply( git_filter *git_ident_filter_new(void) { git_filter *f = git__calloc(1, sizeof(git_filter)); + if (f == NULL) + return NULL; f->version = GIT_FILTER_VERSION; f->attributes = "+ident"; /* apply to files with ident attribute set */ |