mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-29 15:22:30 +03:00
cov: dm node message fix missing initilization
In 2 teoretical error path the 'r' value has not been set to proper value before possible use in error path.
This commit is contained in:
parent
253989ecd9
commit
cbbdace006
@ -1487,7 +1487,7 @@ static int _node_message(uint32_t major, uint32_t minor,
|
||||
int expected_errno, const char *message)
|
||||
{
|
||||
struct dm_task *dmt;
|
||||
int r;
|
||||
int r = 0;
|
||||
|
||||
if (!(dmt = dm_task_create(DM_DEVICE_TARGET_MSG)))
|
||||
return_0;
|
||||
|
Loading…
Reference in New Issue
Block a user