summaryrefslogtreecommitdiff
path: root/examples/network/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/fetch.c')
-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)