aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-06-07 22:21:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-06-07 22:21:22 +0000
commit9324f1c29f31e68ffb716e32450ce9f2f9239654 (patch)
tree17f28804f96ad9285886123c8e17dce949f1ffb8 /src
parentd71c1514f2b18731e54cc317e5390d7dcf572c8a (diff)
- Eric Wong fixed --no-buffer to actually switch off output buffering. Been
broken since 7.19.0
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 586d00e2a..b47dced06 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2634,8 +2634,9 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
}
break;
case 'N':
- /* disable the output I/O buffering */
- config->nobuffer = (bool)(!toggle);
+ /* disable the output I/O buffering. note that the option is called
+ --buffer but is mostly used in the negative form: --no-buffer */
+ config->nobuffer = (bool)(longopt ? !toggle : toggle);
break;
case 'O': /* --remote-name */
if(subletter == 'a') { /* --remote-name-all */