Red Hat Bugzilla – Bug 142576
local variable used before set
Last modified: 2007-11-30 17:10:56 EST
Description of problem:
I just tried to compile package autofs-4.1.3-41 from
Redhat Fedora development tree.
The compiler said
lookup_ldap.c(320): remark #592: variable "mapname" is used before its
value is set
The source code is
crit("lookup_ghost: Unable to download
the entire LDAP map for :%s ",mapname);
I agree with the compiler. Suggest init mapname before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
You are correct, the wrong variable was used (mapname instead of
root). This problem has been fixed in FC-3 autofs-4.1.3-68.