mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
Remove unnecessary memset() return value checks. [Jim Meyering]
This commit is contained in:
parent
d330e660ee
commit
c2784df48f
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.19 -
|
Version 1.02.19 -
|
||||||
====================================
|
====================================
|
||||||
|
Remove unnecessary memset() return value checks.
|
||||||
Fix a few leaks in reporting error paths. [1.02.15+]
|
Fix a few leaks in reporting error paths. [1.02.15+]
|
||||||
|
|
||||||
Version 1.02.18 - 13th February 2007
|
Version 1.02.18 - 13th February 2007
|
||||||
|
@ -226,8 +226,8 @@ static struct thread_status *_alloc_thread_status(struct message_data *data,
|
|||||||
if (!ret)
|
if (!ret)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!memset(ret, 0, sizeof(*ret)) ||
|
memset(ret, 0, sizeof(*ret));
|
||||||
!(ret->device.uuid = dm_strdup(data->device_uuid))) {
|
if (!(ret->device.uuid = dm_strdup(data->device_uuid))) {
|
||||||
dm_free(ret);
|
dm_free(ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -258,8 +258,8 @@ static struct dso_data *_alloc_dso_data(struct message_data *data)
|
|||||||
if (!ret)
|
if (!ret)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!memset(ret, 0, sizeof(*ret)) ||
|
memset(ret, 0, sizeof(*ret));
|
||||||
!(ret->dso_name = dm_strdup(data->dso_name))) {
|
if (!(ret->dso_name = dm_strdup(data->dso_name))) {
|
||||||
dm_free(ret);
|
dm_free(ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user