commit | 31079f3b1baffe70a717a01e60eacfa6930a9ba7 | [log] [tgz] |
---|---|---|
author | Szymon Janc <szymon.janc@tieto.com> | Tue May 10 11:04:36 2011 +0200 |
committer | Johan Hedberg <jh@dell.(none)> | Sun May 15 01:47:08 2011 +0300 |
tree | 8d8d765fd3df0d730cac5d29d4d1a0286f47f437 | |
parent | 61d0747e6c9289485ca5b33e2fd1874d1a9b27c5 [diff] |
Fix dead assignment in channel_write
diff --git a/serial/proxy.c b/serial/proxy.c index 127e780..32878ba 100644 --- a/serial/proxy.c +++ b/serial/proxy.c
@@ -208,7 +208,7 @@ fd = g_io_channel_unix_get_fd(chan); - wbytes = written = 0; + wbytes = 0; while (wbytes < size) { written = write(fd, buf + wbytes, size - wbytes);