From 69848e3b70a078a5ba118f0a5ab08e1323954cb2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 10 Sep 2010 16:35:00 +0200 Subject: Fix win32 TLS bug --- odb/details/win32/tls.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odb/details/win32/tls.cxx b/odb/details/win32/tls.cxx index 29eb5fb..a36b7a7 100644 --- a/odb/details/win32/tls.cxx +++ b/odb/details/win32/tls.cxx @@ -139,7 +139,7 @@ namespace odb operator new (sizeof (process_data) + sizeof (dtor_func) * c))); memcpy (pd->dtors, proc_data_->dtors, n * sizeof (dtor_func)); - memset (proc_data_->dtors + n, 0, sizeof (dtor_func) * (c - n)); + memset (pd->dtors + n, 0, sizeof (dtor_func) * (c - n)); pd->size = n; pd->capacity = c; -- cgit v1.1