Commit Diff


commit - b50cabdf52fb94fec7e3d01b074c4dc3f144b372
commit + eb3df2c4aa176b3a0493d0656d2d093b4d4c7c9b
blob - a62e681872a917276bb5a5707220c92aca2434bc
blob + 269d7bc470110479baf6a0f3edcea0d19310174e
--- lib/worktree.c
+++ lib/worktree.c
@@ -3795,6 +3795,7 @@ got_worktree_rebase_commit(struct got_object_id **new_
 	struct got_object_id *commit_id = NULL;
 
 	TAILQ_INIT(&commitable_paths);
+	*new_commit_id = NULL;
 
 	/* Work tree is locked/unlocked during rebase preparation/teardown. */