Skip to contentSkip to conversation

New: local variable used before set

PATCH New Christophe Varoqui 1 participant 1 message May 24, 2005 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New: local variable used before set

Quite broken logic, true ...

===== cut here =====

libmultipath/pgpolicies.c (mode:100644) +1 -1
@@ -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