tty: fixed warnings about an uninitialized variable.

This commit is contained in:
Jérôme Duval
2013-10-04 15:21:52 +02:00
parent da9508d5e3
commit 6eb9729145
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1348,7 +1348,7 @@ tty_write_to_tty_master_unsafe(tty_cookie* sourceCookie, const char* data,
// If in echo mode, we do the output conversion and need to update
// the needed bytes count.
char echoBuffer[3];
size_t echoBytes;
size_t echoBytes = 0;
if (echo) {
process_output_char(source, c, echoBuffer, &echoBytes, true);
if (echoBytes > bytesNeeded)
+1 -1
View File
@@ -1062,7 +1062,7 @@ tty_write_to_tty_master_unsafe(tty_cookie* sourceCookie, const char* data,
// If in echo mode, we do the output conversion and need to update
// the needed bytes count.
char echoBuffer[3];
size_t echoBytes;
size_t echoBytes = 0;
if (echo) {
process_output_char(source, c, echoBuffer, &echoBytes, true);
if (echoBytes > bytesNeeded)