Closed Bug 228400 Opened 21 years ago Closed 21 years ago

Warning ``assignment to undeclared variable ...'' in nsLDAPPrefsService.js

Categories

(MailNews Core :: LDAP Integration, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 obsolete file)

Warning ``assignment to undeclared variable gPrefInt'' [xs] in file
``file:///C:/Documents%20and%20Settings/Josh/Desktop/mozilla/components/nsLDAPPrefsService.js'',
line 44, character 0.
Stopped for error handler.
#0: function nsLDAPPrefsService() in
<file:/C:/Documents%20and%20Settings/Josh/Desktop/mozilla/components/nsLDAPPrefsService.js>
line 44
042: var j = 0;
043: try {
044: gPrefInt = Components.classes["@mozilla.org/preferences-service;1"];
045: gPrefInt = gPrefInt.getService(nsIPrefBranch);
046: }

Warning ``assignment to undeclared variable i'' [xs] in file
``file:///C:/Documents%20and%20Settings/Josh/Desktop/mozilla/components/nsLDAPPrefsService.js'',
line 134, character 0.
Stopped for error handler.
#0: function anonymous(prefBranch=XPComponent:{23}, aCount=Object:{1}) in
<file:/C:/Documents%20and%20Settings/Josh/Desktop/mozilla/components/nsLDAPPrefsService.js>
line 134
132: // i.e. add ldap_2.servers.<server-name>
133: // but not ldap_2.servers.<server-name>.foo
134: for(i=0; i<prefCount.value; i++) {
135: // Assign the prefix ldap_2.servers.<server-name> to directoriesList
136: prefixLen = directoriesList[i].indexOf(".", parent.length);

Warning ``assignment to undeclared variable dirType'' [xs] in file
``file:///C:/Documents%20and%20Settings/Josh/Desktop/mozilla/components/nsLDAPPrefsService.js'',
line 74, character 0.
Stopped for error handler.
#0: function nsLDAPPrefsService() in
<file:/C:/Documents%20and%20Settings/Josh/Desktop/mozilla/components/nsLDAPPrefsService.js>
line 74
072: }
073: try{
074: dirType = gPrefInt.getIntPref(arrayOfDirectories[i]+".dirType");
075: }
076: catch(ex){
Attachment #137377 - Flags: superreview?(bz-vacation)
Attachment #137377 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 137377 [details] [diff] [review]
declare i, dirType. make the decl for gPrefInt actually honor the naming convention...
[Checked in: Comment 3]

sr=bzbarsky, I guess
Attachment #137377 - Flags: superreview?(bz-vacation) → superreview+
Attachment #137377 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 137377 [details] [diff] [review]
declare i, dirType. make the decl for gPrefInt actually honor the naming convention...
[Checked in: Comment 3]


Check in: { 12/20/2003 22:17	timeless%mozdev.org	1.16 }
Attachment #137377 - Attachment description: declare i, dirType. make the decl for gPrefInt actually honor the naming convention... → declare i, dirType. make the decl for gPrefInt actually honor the naming convention... [Checked in: Comment 3]
Attachment #137377 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: