From eba197161a5917631dd7732de842c68e3159c951 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 1 Mar 2014 13:49:28 +0000 Subject: tool: Moved internal variable isatty to the global config --- src/tool_cb_dbg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tool_cb_dbg.c') 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"); -- cgit v1.2.3