[RHEL7,COMMIT] ms/dynamic debug: line queries failing due to uninitialized local variable

Submitted by Konstantin Khorenko on June 16, 2020, 11:01 a.m.

Details

Message ID 202006161101.05GB1Imh030856@finist-ce7.sw.ru
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 802fd17faeff8..8726224a08125 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -314,7 +314,7 @@  static int ddebug_parse_query(char *words[], int nwords,
 			struct ddebug_query *query, const char *modname)
 {
 	unsigned int i;
-	int rc;
+	int rc = 0;
 
 	/* check we have an even number of words */
 	if (nwords % 2 != 0) {