mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +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 -
|
||||
====================================
|
||||
Remove unnecessary memset() return value checks.
|
||||
Fix a few leaks in reporting error paths. [1.02.15+]
|
||||
|
||||
Version 1.02.18 - 13th February 2007
|
||||
|
@ -226,8 +226,8 @@ static struct thread_status *_alloc_thread_status(struct message_data *data,
|
||||
if (!ret)
|
||||
return NULL;
|
||||
|
||||
if (!memset(ret, 0, sizeof(*ret)) ||
|
||||
!(ret->device.uuid = dm_strdup(data->device_uuid))) {
|
||||
memset(ret, 0, sizeof(*ret));
|
||||
if (!(ret->device.uuid = dm_strdup(data->device_uuid))) {
|
||||
dm_free(ret);
|
||||
return NULL;
|
||||
}
|
||||
@ -258,8 +258,8 @@ static struct dso_data *_alloc_dso_data(struct message_data *data)
|
||||
if (!ret)
|
||||
return NULL;
|
||||
|
||||
if (!memset(ret, 0, sizeof(*ret)) ||
|
||||
!(ret->dso_name = dm_strdup(data->dso_name))) {
|
||||
memset(ret, 0, sizeof(*ret));
|
||||
if (!(ret->dso_name = dm_strdup(data->dso_name))) {
|
||||
dm_free(ret);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user