From patchwork Thu Jul 22 16:36:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christof Schmitt X-Patchwork-Id: 113629 Received: from mx01.colomx.prod.int.phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6MGl8kJ004271 for ; Thu, 22 Jul 2010 16:47:44 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx01.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGfvcs029304; Thu, 22 Jul 2010 12:41:58 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGdZSu015030 for ; Thu, 22 Jul 2010 12:39:35 -0400 Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.5]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGdU0J031746 for ; Thu, 22 Jul 2010 12:39:30 -0400 Received: from mtagate3.de.ibm.com (mtagate3.de.ibm.com [195.212.17.163]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGdKVL012323 for ; Thu, 22 Jul 2010 12:39:20 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.1/8.13.1) with ESMTP id o6MGdIxn020750 for ; Thu, 22 Jul 2010 16:39:18 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o6MGdIgV1704136 for ; Thu, 22 Jul 2010 18:39:18 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o6MGdIQN002363 for ; Thu, 22 Jul 2010 18:39:18 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id o6MGdIHF002360; Thu, 22 Jul 2010 18:39:18 +0200 Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 3476) id 68142122422D; Thu, 22 Jul 2010 18:39:18 +0200 (CEST) Message-Id: <20100722163918.296646000@de.ibm.com> User-Agent: quilt/0.47-1 Date: Thu, 22 Jul 2010 18:36:48 +0200 From: Christof Schmitt To: Christophe Varoqui References: <20100722163646.585967000@de.ibm.com> Content-Disposition: inline; filename=init-ptr.diff X-RedHat-Spam-Score: -2.311 (RCVD_IN_DNSWL_MED,SPF_PASS,T_RP_MATCHES_RCVD) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.5 X-loop: dm-devel@redhat.com Cc: Christof Schmitt , dm-devel@redhat.com Subject: [dm-devel] [patch 2/2] multipath-tools: Intialize pointer passed to get_cmdvec X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 22 Jul 2010 16:47:44 +0000 (UTC) --- 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;