]> granicus.if.org Git - curl/commitdiff
memdebug: fix variable name
authorGisle Vanem <gisle.vanem@gmail.com>
Mon, 22 Apr 2019 07:04:26 +0000 (03:04 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 22 Apr 2019 07:10:05 +0000 (03:10 -0400)
Follow-up to 76b6348 which renamed logfile as curl_dbg_logfile.

Ref: https://github.com/curl/curl/commit/76b6348#r33259088

lib/memdebug.c

index e3ac8edf74da2fb9ffda2958c7cff1702b09926f..00e57e9a16fd0b50a8aa7143c938d62d07cd3c06 100644 (file)
@@ -114,8 +114,8 @@ void curl_dbg_memdebug(const char *logname)
       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
   }
 }