]> granicus.if.org Git - curl/commitdiff
fix bool variables checking and assignment
authorYang Tse <yangsita@gmail.com>
Mon, 5 Sep 2011 23:57:21 +0000 (01:57 +0200)
committerYang Tse <yangsita@gmail.com>
Mon, 5 Sep 2011 23:57:21 +0000 (01:57 +0200)
src/main.c

index 94abbb22e92f30206ab917f65588b88b48cb4c19..4f5fd917744e53f2083aa72575196b02930e2cc0 100644 (file)
@@ -5250,7 +5250,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
           SET_BINMODE(stdout);
         }
 
-        if(1 == config->tcp_nodelay)
+        if(config->tcp_nodelay)
           my_setopt(curl, CURLOPT_TCP_NODELAY, 1);
 
         /* where to store */