Commit 62d20534cc5908ccf5efd1bb7460e1c29ab905ed

Stefan Sperling 2019-01-29T00:09:32

remove redundant condition check in cmp_entries()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/fileindex.c b/lib/fileindex.c
index aad51a9..624ff8c 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -609,7 +609,7 @@ cmp_entries(const char *ie_path, const char *parent_path,
     size_t parent_len, const char *te_name)
 {
 	int cmp = strncmp(ie_path, parent_path, parent_len);
-	if (cmp == 0 || parent_len == 0) {
+	if (cmp == 0) {
 		const char *ie_name = ie_path + parent_len;
 		while (ie_name[0] == '/')
 			ie_name++;