Commit 3f52f7b9fb6628d8a7068098a596151c812e00c8

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

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
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 2b9d05f..8bb6cee 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -556,7 +556,7 @@ static int packed_map_check(refdb_fs_backend *backend)
 static const char *start_of_record(const char *buf, const char *p)
 {
 	const char *nl = p;
-	while (1) {
+	while (true) {
 		nl = git__memrchr(buf, '\n', nl - buf);
 		if (!nl)
 			return buf;