Avoid infinite stack explosion in windows monotime.

[init calls get calls init calls get calls init.... ]
This commit is contained in:
Nick Mathewson 2016-07-21 15:26:05 +02:00
parent 1d0775684d
commit 9c210d0e81

View File

@ -536,12 +536,12 @@ void
monotime_init(void)
{
if (!monotime_initialized) {
monotime_initialized = 1;
monotime_init_internal();
monotime_get(&initialized_at);
#ifdef MONOTIME_COARSE_FN_IS_DIFFERENT
monotime_coarse_get(&initialized_at_coarse);
#endif
monotime_initialized = 1;
}
}