summaryrefslogtreecommitdiff
path: root/evthread.c
diff options
context:
space:
mode:
authorunknown <Nick Mathewson@.(none)>2009-12-21 16:36:40 -0500
committerunknown <Nick Mathewson@.(none)>2009-12-21 16:36:40 -0500
commitc51bb3c342a02536a74ed8c4e739dc76dd145c70 (patch)
tree29c5447a0a93049f707f9515d105fa98f031e598 /evthread.c
parent5a112d3c0748d8e65c0fd36c2717dd3fe7c0639b (diff)
downloadlibevent-c51bb3c342a02536a74ed8c4e739dc76dd145c70.tar.gz
Fix a few locking issues on windows.
Diffstat (limited to 'evthread.c')
-rw-r--r--evthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/evthread.c b/evthread.c
index 66d7a3dd..f12eed7b 100644
--- a/evthread.c
+++ b/evthread.c
@@ -170,6 +170,8 @@ debug_lock_alloc(unsigned locktype)
mm_free(result);
return NULL;
}
+ } else {
+ result->lock = NULL;
}
result->locktype = locktype;
result->count = 0;