Commit 13ff9e901c193017bf37229e261588b7bdbfe446

Stefan Sperling 2019-02-10T16:53:56

use break instead of goto to exit loop; no functional change

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/fileindex.c b/lib/fileindex.c
index 85b4399..5d501fc 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -792,7 +792,7 @@ diff_fileindex_dir(struct got_fileindex *fileindex,
 			if (asprintf(&de_path, "%s/%s", path,
 			    de->d_name) == -1) {
 				err = got_error_from_errno();
-				goto done;
+				break;
 			}
 			cmp = got_path_cmp((*ie)->path, de_path);
 			free(de_path);