Commit 0df53fd6367d3ffb0f6a15bde0ab46655048ecd3

Colin Stolley 2021-12-24T10:47:32

Update src/refdb_fs.c Co-authored-by: Edward Thomson <ethomson@github.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 8bb6cee..65bbf66 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -579,9 +579,8 @@ static const char *end_of_record(const char *p, const char *end)
 	while (1) {
 		size_t sz = end - p;
 		p = memchr(p, '\n', sz);
-		if (!p) {
+		if (!p)
 			return end;
-		}
 		++p;
 		if (p < end && p[0] == '^')
 			++p;