Blame SOURCES/compat-db-cppcheck-warnings.patch

721b43
# Sanity fix for cppcheck warnings
721b43
721b43
diff -up compat-db-4.7.25/db-4.7.25/qam/qam_stat.c.old compat-db-4.7.25/db-4.7.25/qam/qam_stat.c
721b43
--- compat-db-4.7.25/db-4.7.25/qam/qam_stat.c.old	2014-03-26 11:39:14.653022479 +0100
721b43
+++ compat-db-4.7.25/db-4.7.25/qam/qam_stat.c	2014-03-26 11:40:09.981228567 +0100
721b43
@@ -36,7 +36,7 @@ __qam_stat(dbc, spp, flags)
721b43
 	QAMDATA *qp, *ep;
721b43
 	QMETA *meta;
721b43
 	QUEUE *t;
721b43
-	db_indx_t indx;
721b43
+	db_indx_t indx = 0;
721b43
 	db_pgno_t first, last, pgno, pg_ext, stop;
721b43
 	u_int32_t re_len;
721b43
 	int ret, t_ret;
721b43
diff -up compat-db-4.7.25/db-4.7.25/repmgr/repmgr_posix.c.old compat-db-4.7.25/db-4.7.25/repmgr/repmgr_posix.c
721b43
--- compat-db-4.7.25/db-4.7.25/repmgr/repmgr_posix.c.old	2014-03-26 11:36:30.164404044 +0100
721b43
+++ compat-db-4.7.25/db-4.7.25/repmgr/repmgr_posix.c	2014-03-26 11:36:39.083437596 +0100
721b43
@@ -534,7 +534,7 @@ __repmgr_select_loop(env)
721b43
 	struct timeval select_timeout, *select_timeout_p;
721b43
 	DB_REP *db_rep;
721b43
 	REPMGR_CONNECTION *conn, *next;
721b43
-	db_timespec timeout;
721b43
+	db_timespec timeout = {.tv_sec = 0, .tv_nsec = 0};
721b43
 	fd_set reads, writes;
721b43
 	int ret, flow_control, maxfd;
721b43
 	u_int8_t buf[10];	/* arbitrary size */