Copy link
@gvanem

gvanem Apr 22, 2019

Contributor

When building with -DMEMDEBUG_LOG_SYNC, I get an error a few lines below.
Hence it should be patched into:

--- a/lib/memdebug.c 2019-03-17 13:29:33
+++ b/lib/memdebug.c 2019-04-22 06:44:32
@@ -114,8 +114,8 @@
       curl_dbg_logfile = stderr;
 #ifdef MEMDEBUG_LOG_SYNC
     /* Flush the log file after every line so the log isn't lost in a crash */
-    if(logfile)
-      setbuf(logfile, (char *)NULL);
+    if(curl_dbg_logfile)
+      setbuf(curl_dbg_logfile, (char *)NULL);
 #endif
   }
 }