summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-10 16:46:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-10 16:49:54 +0100
commit306d4abeb55cd8962e858563e24e5a5b8504edaa (patch)
tree9244abbf1679c147026697686feeca8ec3ec4dc4
parent39ba9cefa7f34f72d6554e775923762e120bce49 (diff)
device: initialize to zero offset
Initialize addr to zero offset to quiet warnings about uninitialized deallocation. * device/chario.c (addr): Initialize to zero.
-rw-r--r--device/chario.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/chario.c b/device/chario.c
index c40705e..19f3bae 100644
--- a/device/chario.c
+++ b/device/chario.c
@@ -260,7 +260,7 @@ io_return_t char_write(
spl_t s;
int count;
char *data;
- vm_offset_t addr;
+ vm_offset_t addr = 0;
io_return_t rc = D_SUCCESS;
data = ior->io_data;