diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-30 08:49:00 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-30 09:02:49 -0400 |
commit | f93beebcba473dc4c60fa25272b805f04ef0541b (patch) | |
tree | bf71a67f00ebabd6faf52e2fd77655f06f8d7936 | |
parent | 036be15070bf7384f9391ddd52d1fc084b1ef8da (diff) | |
download | libgit2-f93beebcba473dc4c60fa25272b805f04ef0541b.tar.gz |
filter: don't overwrite error value
-rw-r--r-- | src/filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c index f1d961406..dd7d2f7ec 100644 --- a/src/filter.c +++ b/src/filter.c @@ -206,7 +206,8 @@ int git_filter_global_init(void) GIT_FILTER_IDENT, ident, GIT_FILTER_IDENT_PRIORITY) < 0) error = -1; - error = git_runtime_shutdown_register(git_filter_global_shutdown); + if (!error) + error = git_runtime_shutdown_register(git_filter_global_shutdown); done: if (error) { |