Commit a22ad9fd by Vicent Martí

Merge pull request #1219 from sba1/fetch-example-return-fix

Don't call pthread_exit() in the callback of the fetch example
parents 252b2404 cea994b9
...@@ -42,7 +42,7 @@ static void *download(void *ptr) ...@@ -42,7 +42,7 @@ static void *download(void *ptr)
exit: exit:
data->finished = 1; data->finished = 1;
pthread_exit(&data->ret); return &data->ret;
} }
static int update_cb(const char *refname, const git_oid *a, const git_oid *b, void *data) static int update_cb(const char *refname, const git_oid *a, const git_oid *b, void *data)
......
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