[dm-devel] [Bug 158603][PATCH] New: local variable used before set

Christophe Varoqui christophe.varoqui at free.fr
Tue May 24 09:24:33 UTC 2005


Quite broken logic, true ...

===== cut here =====
--- 434d2afe39c8a54a5788f312dd2a6653f7c2560a/libmultipath/pgpolicies.c  (mode:100644)
+++ uncommitted/libmultipath/pgpolicies.c  (mode:100644)
@@ -243,7 +243,7 @@
 {
        struct pathgroup * pgp;

-       if (VECTOR_SIZE(pgp->paths) < 0)
+       if (VECTOR_SIZE(mp->paths) < 0)
                return 0;

        if (!mp->pg)
=====
Regards,
cvaroqui




More information about the dm-devel mailing list