From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zdenek Kabelac Date: Wed, 22 Dec 2010 11:23:15 +0100 Subject: [PATCH 09/23] Add test for errors in _setup_task In-Reply-To: <4D10DFE0.6080907@redhat.com> References: <1647ec7c4651efc13dfc7125038082fcf7157765.1292945707.git.zkabelac@redhat.com> <4D10DFE0.6080907@redhat.com> Message-ID: <4D11D193.3090008@redhat.com> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Dne 21.12.2010 18:12, Milan Broz napsal(a): > On 12/21/2010 04:41 PM, Zdenek Kabelac wrote: >> - if (uuid && *uuid) >> - dm_task_set_uuid(dmt, uuid); >> + if (uuid && *uuid && !dm_task_set_uuid(dmt, uuid)) >> + goto_out; > > Shouldn't it fail if uuid is requested but it is empty string? > (but that's another problem:-) > If this is invalid combination: (uuid && (!*uuid || !dm_task_set_uuid()) Zdenek