summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorRay Donnelly <mingw.android@gmail.com>2013-01-11 16:36:00 +0000
committerRay Donnelly <mingw.android@gmail.com>2013-01-11 16:36:00 +0000
commitbbe26c1f79bf860dde9cfbe8cd4ad826cd1a8a53 (patch)
tree53607e0494ac63e2da5b70a67a0f0ed8ba941446 /adb
parentef2ea99bfe1e19c451882c3c8eb19368d0087ff6 (diff)
downloadsystem_core-bbe26c1f79bf860dde9cfbe8cd4ad826cd1a8a53.zip
system_core-bbe26c1f79bf860dde9cfbe8cd4ad826cd1a8a53.tar.gz
system_core-bbe26c1f79bf860dde9cfbe8cd4ad826cd1a8a53.tar.bz2
Windows adb: initialize on to 1 in disable_tcp_nagle
Diffstat (limited to 'adb')
-rw-r--r--adb/sysdeps_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/sysdeps_win32.c b/adb/sysdeps_win32.c
index d41c42c..2105b16 100644
--- a/adb/sysdeps_win32.c
+++ b/adb/sysdeps_win32.c
@@ -781,7 +781,7 @@ int adb_socket_accept(int serverfd, struct sockaddr* addr, socklen_t *addrle
void disable_tcp_nagle(int fd)
{
FH fh = _fh_from_int(fd);
- int on;
+ int on = 1;
if ( !fh || fh->clazz != &_fh_socket_class )
return;