diff options
author | Gisle Vanem <gisle.vanem@gmail.com> | 2019-04-22 03:04:26 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2019-04-22 03:10:05 -0400 |
commit | b21701c54ba050145246e89c5137015479c65f7e (patch) | |
tree | d303909123f97eae727ce874b1626ae845be4015 | |
parent | f0950acc07b46f74ea5a54bbe50f081072fc2a68 (diff) | |
download | curl-b21701c54ba050145246e89c5137015479c65f7e.tar.gz |
memdebug: fix variable name
Follow-up to 76b6348 which renamed logfile as curl_dbg_logfile.
Ref: https://github.com/curl/curl/commit/76b6348#r33259088
-rw-r--r-- | lib/memdebug.c | 4 |
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 } } |