From b21701c54ba050145246e89c5137015479c65f7e Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 22 Apr 2019 03:04:26 -0400 Subject: [PATCH] memdebug: fix variable name Follow-up to 76b6348 which renamed logfile as curl_dbg_logfile. Ref: https://github.com/curl/curl/commit/76b6348#r33259088 --- lib/memdebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/memdebug.c b/lib/memdebug.c index e3ac8edf7..00e57e9a1 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -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 } }