aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGisle Vanem <gisle.vanem@gmail.com>2019-04-22 03:04:26 -0400
committerJay Satiro <raysatiro@yahoo.com>2019-04-22 03:10:05 -0400
commitb21701c54ba050145246e89c5137015479c65f7e (patch)
treed303909123f97eae727ce874b1626ae845be4015 /lib
parentf0950acc07b46f74ea5a54bbe50f081072fc2a68 (diff)
memdebug: fix variable name
Follow-up to 76b6348 which renamed logfile as curl_dbg_logfile. Ref: https://github.com/curl/curl/commit/76b6348#r33259088
Diffstat (limited to 'lib')
-rw-r--r--lib/memdebug.c4
1 files 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
}
}