From e4097c5de5aa22b2e7656de3417b5bbd4e7abe18 Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Wed, 28 Nov 2012 18:13:56 +0100 Subject: [PATCH] Fix uninitialized variable --- src/pygit2/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pygit2/diff.c b/src/pygit2/diff.c index 8cd0d51..b8ba989 100644 --- a/src/pygit2/diff.c +++ b/src/pygit2/diff.c @@ -81,7 +81,7 @@ static int diff_hunk_cb( PyObject *hunks; Hunk *hunk; int len; - char* old_path, *new_path; + char* old_path = NULL, *new_path = NULL; char oid[GIT_OID_HEXSZ];