Skip to content

Commit f93beeb

Browse files
committed
filter: don't overwrite error value
1 parent 036be15 commit f93beeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/filter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ int git_filter_global_init(void)
206206
GIT_FILTER_IDENT, ident, GIT_FILTER_IDENT_PRIORITY) < 0)
207207
error = -1;
208208

209-
error = git_runtime_shutdown_register(git_filter_global_shutdown);
209+
if (!error)
210+
error = git_runtime_shutdown_register(git_filter_global_shutdown);
210211

211212
done:
212213
if (error) {

0 commit comments

Comments
 (0)