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];