diff --git a/netwerk/mime/src/nsMIMEInfoImpl.cpp b/netwerk/mime/src/nsMIMEInfoImpl.cpp index 5ae0f380fc6..f6545b52dc4 100644 --- a/netwerk/mime/src/nsMIMEInfoImpl.cpp +++ b/netwerk/mime/src/nsMIMEInfoImpl.cpp @@ -98,7 +98,7 @@ nsMIMEInfoImpl::ExtensionExists(const char *aExtension, PRBool *_retval) { NS_ASSERTION(aExtension, "no extension"); PRBool found = PR_FALSE; PRUint32 extCount = mExtensions.Count(); - if (extCount < 1) return NS_ERROR_NOT_INITIALIZED; + if (extCount < 1) return NS_OK; if (!aExtension) return NS_ERROR_NULL_POINTER; diff --git a/uriloader/exthandler/nsMIMEInfoImpl.cpp b/uriloader/exthandler/nsMIMEInfoImpl.cpp index 5ae0f380fc6..f6545b52dc4 100644 --- a/uriloader/exthandler/nsMIMEInfoImpl.cpp +++ b/uriloader/exthandler/nsMIMEInfoImpl.cpp @@ -98,7 +98,7 @@ nsMIMEInfoImpl::ExtensionExists(const char *aExtension, PRBool *_retval) { NS_ASSERTION(aExtension, "no extension"); PRBool found = PR_FALSE; PRUint32 extCount = mExtensions.Count(); - if (extCount < 1) return NS_ERROR_NOT_INITIALIZED; + if (extCount < 1) return NS_OK; if (!aExtension) return NS_ERROR_NULL_POINTER;