diff options
Diffstat (limited to 'src/rebase.c')
-rw-r--r-- | src/rebase.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebase.c b/src/rebase.c index 0c84a480a..ceb74d39f 100644 --- a/src/rebase.c +++ b/src/rebase.c @@ -592,7 +592,8 @@ static int rebase_init( git_buf state_path = GIT_BUF_INIT; int error; - git_buf_joinpath(&state_path, repo->path_repository, REBASE_MERGE_DIR); + if ((error = git_buf_joinpath(&state_path, repo->path_repository, REBASE_MERGE_DIR)) < 0) + return error; rebase->repo = repo; rebase->type = GIT_REBASE_TYPE_MERGE; |