diff mbox

[2/2] multipath-tools: Intialize pointer passed to get_cmdvec

Message ID 20100722163918.296646000@de.ibm.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Christof Schmitt July 22, 2010, 4:36 p.m. UTC
None
diff mbox

Patch

--- a/multipathd/cli.c
+++ b/multipathd/cli.c
@@ -363,7 +363,7 @@  parse_cmd (char * cmd, char ** reply, in
 {
 	int r;
 	struct handler * h;
-	vector cmdvec;
+	vector cmdvec = NULL;
 
 	r = get_cmdvec(cmd, &cmdvec);
 
@@ -467,7 +467,7 @@  key_generator (const char * str, int sta
 	struct key * kw;
 	int i;
 	struct handler *h;
-	vector v;
+	vector v = NULL;
 
 	if (!state) {
 		index = 0;