Commit e456239b0c1542c3041c5ea7b4c14b5daf2ce5d0

Stefan Sperling 2018-07-16T13:58:36

initialize variable correctly

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 005060e..a4f9e1c 100644
--- a/got/got.c
+++ b/got/got.c
@@ -428,7 +428,7 @@ print_commits(struct got_object *root_obj, struct got_object_id *root_id,
 		if (path) {
 			struct got_object *obj;
 			struct got_object_qid *pid;
-			int changed = 1;
+			int changed = 0;
 
 			err = got_object_open_by_path(&obj, repo, id, path);
 			if (err) {