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

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