mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: set min,maj
Reset derefered pointers instead of pointers.
This commit is contained in:
parent
3e3f2a53ea
commit
635e7e0c92
@ -1,5 +1,6 @@
|
||||
Version 1.02.139 -
|
||||
==================================
|
||||
Fix assignment in _target_version() when dm task can't run.
|
||||
Flush stdout on each iteration when using --count or --interval.
|
||||
Show detailed error message when execvp fails while starting dmfilemapd.
|
||||
Fix segmentation fault when dmfilemapd is run with no arguments.
|
||||
|
@ -2400,9 +2400,8 @@ static int _target_version(const char *target_name, uint32_t *maj,
|
||||
if (!dm_task_run(dmt)) {
|
||||
log_debug_activation("Failed to get %s target versions", target_name);
|
||||
/* Assume this was because LIST_VERSIONS isn't supported */
|
||||
maj = min = patchlevel = 0;
|
||||
*maj = *min = *patchlevel = 0;
|
||||
r = 1;
|
||||
|
||||
} else
|
||||
for (target = dm_task_get_versions(dmt);
|
||||
target != last_target;
|
||||
|
Loading…
Reference in New Issue
Block a user