Tls initialization problem causes invalid tsk error codes in Windows
Brought to you by:
carrier
Visual Studio optimization skips GetTlsIndex class constructor execution in release builds, due to this class is not used anywhere. So the previous code has never initialized tlsIndex variable with anything. Such behavior sometime caused the crashes due to error code was not saved into unallocated TLS.
See pull request:
https://github.com/sleuthkit/sleuthkit/pull/285