prevent free(3) of uninitialized variable in rebase error path
diff --git a/lib/worktree.c b/lib/worktree.c
index a62e681..269d7bc 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -3795,6 +3795,7 @@ got_worktree_rebase_commit(struct got_object_id **new_commit_id,
struct got_object_id *commit_id = NULL;
TAILQ_INIT(&commitable_paths);
+ *new_commit_id = NULL;
/* Work tree is locked/unlocked during rebase preparation/teardown. */