mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
clar: exit immediately on initialization failure
This commit is contained in:
@@ -11,7 +11,12 @@ int main(int argc, char *argv[])
|
||||
|
||||
clar_test_init(argc, argv);
|
||||
|
||||
git_libgit2_init();
|
||||
res = git_libgit2_init();
|
||||
if (res < 0) {
|
||||
fprintf(stderr, "failed to init libgit2");
|
||||
return res;
|
||||
}
|
||||
|
||||
cl_global_trace_register();
|
||||
cl_sandbox_set_search_path_defaults();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user