[gcab/wip/hughsie/covscan: 2/3] trivial: Fix a Coverity warning about uninitialized variables
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcab/wip/hughsie/covscan: 2/3] trivial: Fix a Coverity warning about uninitialized variables
- Date: Wed, 13 Apr 2022 12:48:49 +0000 (UTC)
commit e3fbfd7ea7f8e0897bc04c8f1d0cc06c2c29d8d9
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 13 13:44:14 2022 +0100
trivial: Fix a Coverity warning about uninitialized variables
libgcab/decomp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgcab/decomp.c b/libgcab/decomp.c
index 0c2b184..22e81ba 100644
--- a/libgcab/decomp.c
+++ b/libgcab/decomp.c
@@ -99,7 +99,7 @@ struct Ziphuft **t, cab_LONG *m, fdi_decomp_state *decomp_state)
cab_LONG *l; /* stack of bits per table */
register cab_ULONG *p; /* pointer into ZIP(c)[],ZIP(b)[],ZIP(v)[] */
register struct Ziphuft *q; /* points to current table */
- struct Ziphuft r; /* table entry for structure assignment */
+ struct Ziphuft r = {0x0}; /* table entry for structure assignment */
register cab_LONG w; /* bits before this table == (l * h) */
cab_ULONG *xp; /* pointer into x */
cab_LONG y; /* number of dummy codes added */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]