Do not declare variables within (bogus) conditionals
authorColin Campbell <colin.campbell@ptfs-europe.com>
Sun, 9 May 2010 14:58:52 +0000 (15:58 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 13 May 2010 19:22:31 +0000 (07:22 +1200)
commitb4eb19b6d302fe1b72ead723e14830345ca5e382
treef9ba38617867fd82ed351bbfae29625c513d74e7
parentf80257330a3da9ee0c82223b9bc6c84c7516b827
Do not declare variables within (bogus) conditionals

if $index is unnecessary as we have made this true 5 lines above
variables should not be declared in conditionals if used outside of them
set $struct_attr to a sensible default to avoid generating warnings
in this assigment and elsewhere

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Search.pm