aboutsummaryrefslogtreecommitdiff
path: root/src/tool_cb_dbg.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-03-01 13:49:28 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-03-01 18:30:16 +0000
commiteba197161a5917631dd7732de842c68e3159c951 (patch)
tree4d952862373734940ddde5808a71df63a2adbc4e /src/tool_cb_dbg.c
parent36802d6e0c402969cb64ef9dd0d0b799165198d8 (diff)
tool: Moved internal variable isatty to the global config
Diffstat (limited to 'src/tool_cb_dbg.c')
-rw-r--r--src/tool_cb_dbg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c
index 8a75fb693..010dae3b9 100644
--- a/src/tool_cb_dbg.c
+++ b/src/tool_cb_dbg.c
@@ -142,8 +142,7 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
to stderr or stdout, we don't display the alert about the data not
being shown as the data _is_ shown then just not via this
function */
- if(!operation->isatty ||
- ((output != stderr) && (output != stdout))) {
+ if(!config->isatty || ((output != stderr) && (output != stdout))) {
if(!newl)
fprintf(output, "%s%s ", timebuf, s_infotype[type]);
fprintf(output, "[data not shown]\n");