]> sourceware.org Git - lvm2.git/commitdiff
libdm: set min,maj
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 1 Apr 2017 10:13:37 +0000 (12:13 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 12 Apr 2017 19:33:47 +0000 (21:33 +0200)
Reset derefered pointers instead of pointers.

WHATS_NEW_DM
libdm/libdm-deptree.c

index 23f3ce5f08ac5fcf69a8e08b544e79864952c4a3..2fa2566eadc039791e2daf68a84d2c475b44c0df 100644 (file)
@@ -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.
index 80bfc1be76dfccad3d206705c696ca166ac3cdc2..6ea710defe5b446facdc7a65dbc1cfdebd32cf3e 100644 (file)
@@ -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;
This page took 0.039773 seconds and 5 git commands to generate.