Commit 55ad411b9660776f942343a075eed49c30c951b5

Stefan Sperling 2018-07-16T13:59:27

set a boolean properly

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/got/got.c b/got/got.c
index a4f9e1c..ab9e4f8 100644
--- a/got/got.c
+++ b/got/got.c
@@ -456,9 +456,9 @@ print_commits(struct got_object *root_obj, struct got_object_id *root_id,
 					err = NULL;
 					changed = 1;
 				} else {
-					changed = got_object_id_cmp(
+					changed = (got_object_id_cmp(
 					    got_object_get_id(obj),
-					    got_object_get_id(pobj));
+					    got_object_get_id(pobj)) != 0);
 					got_object_close(pobj);
 				}
 			}