mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 00:26:16 +03:00
Merge pull request #348 from GranBurguesa/patch-1
fix do/while guard for DONT_FAKE_TIME macro
This commit is contained in:
@@ -148,7 +148,7 @@ static __thread bool dont_fake = false;
|
||||
|
||||
/* Wrapper for function calls, which we want to return system time */
|
||||
#define DONT_FAKE_TIME(call) \
|
||||
{ \
|
||||
do { \
|
||||
bool dont_fake_orig = dont_fake; \
|
||||
if (!dont_fake) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user