Bug 1167410 - Removing an unused initialization. r=hurley

This commit is contained in:
Ritu Kothari 2015-06-26 15:33:00 +02:00
parent a12ea823a0
commit 8e158e83a7

View File

@ -254,7 +254,8 @@ nsEffectiveTLDService::GetBaseDomainInternal(nsCString &aHostname,
const char *currDomain = aHostname.get();
const char *nextDot = strchr(currDomain, '.');
const char *end = currDomain + aHostname.Length();
const char *eTLD = currDomain;
// Default value of *eTLD is currDomain as set in the while loop below
const char *eTLD = nullptr;
while (1) {
// sanity check the string we're about to look up: it should not begin with
// a '.'; this would mean the hostname began with a '.' or had an