[gcab] Avoid uninitialized values used around
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcab] Avoid uninitialized values used around
- Date: Sun, 20 Jan 2013 00:16:06 +0000 (UTC)
commit 79035f7d85adf480bd6f8ed703c396af0b2af3ca
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Sun Jan 20 01:10:42 2013 +0100
Avoid uninitialized values used around
libgcab/cabinet.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgcab/cabinet.c b/libgcab/cabinet.c
index 7bf609e..8b95b39 100644
--- a/libgcab/cabinet.c
+++ b/libgcab/cabinet.c
@@ -186,6 +186,7 @@ cheader_read (cheader_t *ch, GDataInputStream *in,
goto end;
}
+ memset (ch, 0, sizeof (cheader_t));
R4 (ch->res1);
R4 (ch->size);
R4 (ch->res2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]