Closed Bug 620269 Opened 14 years ago Closed 14 years ago

unreachable code in nsPlatformCharset::GetDefaultCharsetForLocale if HAVE_LANGINFO_CODESET

Categories

(Core :: Internationalization, defect)

All
Linux
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug)

Details

(Keywords: coverity)

Attachments

(1 file)

119 nsPlatformCharset::GetDefaultCharsetForLocale(const nsAString& localeName, nsACString &oResult)

133 #if HAVE_LANGINFO_CODESET
155   return NS_SUCCESS_USING_FALLBACK_LOCALE;
156 #endif

this code isn't reachable #if HAVE_LANGINFO_CODESET, using #else would simplify compiler / analyzer / human parsing
162   nsAutoString localeStr(localeName);
169   return NS_SUCCESS_USING_FALLBACK_LOCALE;
Assignee: smontagu → timeless
Status: NEW → ASSIGNED
Attachment #498678 - Flags: review?(smontagu)
Attachment #498678 - Flags: approval2.0?
Attachment #498678 - Flags: review?(smontagu) → review+
Attachment #498678 - Flags: approval2.0? → approval2.0+
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/92258b02112b
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: