initialize variable correctly
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) {