1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

memdebug: fix MSVC crash with -DMEMDEBUG_LOG_SYNC

Fixes #828
This commit is contained in:
Gisle Vanem 2016-05-30 11:43:04 +02:00 committed by Daniel Stenberg
parent 27c86c8871
commit 9a1593501c

View File

@ -119,7 +119,7 @@ void curl_memdebug(const char *logname)
logfile = stderr;
#ifdef MEMDEBUG_LOG_SYNC
/* Flush the log file after every line so the log isn't lost in a crash */
setvbuf(logfile, (char *)NULL, _IOLBF, 0);
setbuf(logfile, (char *)NULL);
#endif
}
}