Commit f93beebc by Edward Thomson

filter: don't overwrite error value

parent 036be150
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment