Commit 9a159350 authored by Gisle Vanem's avatar Gisle Vanem Committed by Daniel Stenberg
Browse files

memdebug: fix MSVC crash with -DMEMDEBUG_LOG_SYNC

Fixes #828
parent 27c86c88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
  }
}