summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2020-10-07 15:54:08 -0700
committerEric Huss <eric@huss.org>2020-10-07 15:54:08 -0700
commit5b7e71314b6e232d117aa7c07b1f91f9ae063a6a (patch)
tree43cd8dc6852d3002ea75d85901a1523a171782ba
parent9deadaee44dfc1d0e3c49b058e023df396096789 (diff)
downloadlibgit2-5b7e71314b6e232d117aa7c07b1f91f9ae063a6a.tar.gz
Fix error return for invalid extensions.
-rw-r--r--src/repository.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c
index a1186832b..513dbd61f 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -860,7 +860,7 @@ int git_repository_open_ext(
if (config && (error = check_repositoryformatversion(&version, config)) < 0)
goto cleanup;
- if ((error = check_extensions(config, version) < 0))
+ if ((error = check_extensions(config, version)) < 0)
goto cleanup;
if ((flags & GIT_REPOSITORY_OPEN_BARE) != 0)
@@ -1613,7 +1613,7 @@ static int repo_init_config(
if (is_reinit && (error = check_repositoryformatversion(&version, config)) < 0)
goto cleanup;
- if ((error = check_extensions(config, version) < 0))
+ if ((error = check_extensions(config, version)) < 0)
goto cleanup;
#define SET_REPO_CONFIG(TYPE, NAME, VAL) do { \