diff options
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 285ab61e48..42a7294646 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -437,6 +437,7 @@ static shm_pair *shm_get(int key, void *addr) TWG(shm) = newptr; ptr = newptr + TWG(shm_size); TWG(shm_size)++; + memset(ptr, 0, sizeof(*ptr)); return ptr; } |