summaryrefslogtreecommitdiff
path: root/src/ignore.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-05-04 11:06:12 -0700
committerRussell Belfer <rb@github.com>2012-05-04 11:06:12 -0700
commitb709e95146b9d56e2c009915ccea7a86c77d4202 (patch)
treec9257b8278c8d1e28b0cfe5969317ef0ed63c315 /src/ignore.c
parentf917481ee84cbba481c1854cccdedb2d98377d43 (diff)
downloadlibgit2-b709e95146b9d56e2c009915ccea7a86c77d4202.tar.gz
Fix memory leaks and use after free
Diffstat (limited to 'src/ignore.c')
-rw-r--r--src/ignore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ignore.c b/src/ignore.c
index 6f70b972d..fc6194bb5 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -8,7 +8,7 @@
static int parse_ignore_file(
git_repository *repo, const char *buffer, git_attr_file *ignores)
{
- int error;
+ int error = 0;
git_attr_fnmatch *match = NULL;
const char *scan = NULL;
char *context = NULL;