Commit 6c1b6b7a by Carlos Martín Nieto

examples: init the threading system

parent a5de9044
...@@ -54,6 +54,8 @@ int main(int argc, char **argv) ...@@ -54,6 +54,8 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
git_threads_init();
for (i = 0; commands[i].name != NULL; ++i) { for (i = 0; commands[i].name != NULL; ++i) {
if (!strcmp(argv[1], commands[i].name)) if (!strcmp(argv[1], commands[i].name))
return run_command(commands[i].fn, --argc, ++argv); return run_command(commands[i].fn, --argc, ++argv);
......
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