mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
bug 635705 - reorder code in GetParameterInternal. r+a=bzbarsky
This commit is contained in:
parent
9983401c5c
commit
12610868a7
@ -165,8 +165,8 @@ nsMIMEHeaderParamImpl::GetParameterInternal(const char *aHeaderValue,
|
||||
if (str == start)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
*aResult = (char *) nsMemory::Clone(start, (str - start) + 1);
|
||||
(*aResult)[str - start] = '\0'; // null-terminate
|
||||
NS_ENSURE_TRUE(*aResult, NS_ERROR_OUT_OF_MEMORY);
|
||||
(*aResult)[str - start] = '\0'; // null-terminate
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user