summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-01-10 06:01:00 -0800
committerVicent Martí <vicent@github.com>2013-01-10 06:01:00 -0800
commita22ad9fd1f1f938fb9b8ac77939dda8a3b81a00e (patch)
tree83086592cbe225dd77db00d6b87a559706c5ce3f
parent252b24049cf7018ba80c736fda636c53c465fbd2 (diff)
parentcea994b902c7c98f5f16341686d30a40e32dfc95 (diff)
downloadlibgit2-a22ad9fd1f1f938fb9b8ac77939dda8a3b81a00e.tar.gz
Merge pull request #1219 from sba1/fetch-example-return-fix
Don't call pthread_exit() in the callback of the fetch example
-rw-r--r--examples/network/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c
index 437b137d3..416788b63 100644
--- a/examples/network/fetch.c
+++ b/examples/network/fetch.c
@@ -42,7 +42,7 @@ static void *download(void *ptr)
exit:
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)