All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu-char: fix warning 'res' may be used uninitialized
@ 2014-06-25  8:00 Igor Mammedov
  2014-06-25  9:08 ` Markus Armbruster
  0 siblings, 1 reply; 5+ messages in thread
From: Igor Mammedov @ 2014-06-25  8:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, peter.maydell

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
 qemu-char.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu-char.c b/qemu-char.c
index 2e50a10..f6bdf2f 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -132,7 +132,7 @@ int qemu_chr_fe_write(CharDriverState *s, const uint8_t *buf, int len)
 int qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, int len)
 {
     int offset = 0;
-    int res;
+    int res = 0;
 
     qemu_mutex_lock(&s->chr_write_lock);
     while (offset < len) {
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-26 12:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-25  8:00 [Qemu-devel] [PATCH] qemu-char: fix warning 'res' may be used uninitialized Igor Mammedov
2014-06-25  9:08 ` Markus Armbruster
2014-06-25 11:51   ` Igor Mammedov
2014-06-25 19:10     ` Stefan Weil
2014-06-26 12:03       ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.