Red Hat Bugzilla – Bug 158603
local variable used before set
Last modified: 2007-11-30 17:11:06 EST
Description of problem:
I just tried to compile package device-mapper-multipath-0.4.4-2.3 from
Redhat Fedora Core development tree with the most excellent Intel C
The compiler said
pgpolicies.c(246): remark #592: variable "pgp" is used before its value is set
The source code is
struct pathgroup * pgp;
if (VECTOR_SIZE(pgp->paths) < 0)
Clearly broken code. Suggest initialise pgp before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This got fixed.