Commit 763e13777ca013b9cf65fddfe33e7a60184a5079

Stefan Sperling 2019-02-05T15:25:17

fix an uninitialized variable in diff_fileindex_dir()

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/fileindex.c b/lib/fileindex.c
index fecdb10..406a6af 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -804,6 +804,7 @@ diff_fileindex_dir(struct got_fileindex *fileindex,
 				break;
 			*ie = next;
 		} else if (dle) {
+			de = dle->data;
 			err = cb->diff_new(cb_arg, de, path);
 			if (err)
 				break;