Commit 71ec7eacbb0fd56955c10494dee4728903934ccf

Stefan Sperling 2020-01-28T14:52:27

kill left-over debug code snippet from a46b9f33fb3018765180eb67cc954d863a5cd525

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/lib/fileindex.c b/lib/fileindex.c
index 9cdbe90..40c3a03 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -1045,14 +1045,7 @@ diff_fileindex_dir(struct got_fileindex *fileindex,
 				break;
 			*ie = walk_fileindex(fileindex, *ie);
 		} else if (dle) {
-			char *de_path;
 			de = dle->data;
-			if (asprintf(&de_path, "%s/%s", path,
-			    de->d_name) == -1) {
-				err = got_error_from_errno("asprintf");
-				break;
-			}
-			free(de_path);
 			err = cb->diff_new(cb_arg, de, path, dirfd);
 			if (err)
 				break;