Bug 970271: Fix GCC warnings about uninitialized variables, r=jduell.mcbugs

This commit is contained in:
Thomas Zimmermann 2014-02-27 10:18:00 +01:00
parent 061c19e139
commit 2650d61350
2 changed files with 4 additions and 3 deletions

View File

@ -107,7 +107,7 @@ nsAboutBloat::NewChannel(nsIURI *aURI, nsIChannel **result)
if (NS_FAILED(rv)) return rv;
}
nsIChannel* channel;
nsIChannel* channel = nullptr;
rv = NS_NewInputStreamChannel(&channel, aURI, inStr,
NS_LITERAL_CSTRING("text/plain"),
NS_LITERAL_CSTRING("utf-8"));

View File

@ -153,14 +153,15 @@ RtspControllerParent::OnMediaDataAvailable(uint8_t index,
uint32_t int32Value;
uint64_t int64Value;
nsresult rv = meta->GetTimeStamp(&int64Value);
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
LOG(("RtspControllerParent:: OnMediaDataAvailable %d:%d time %lld",
index, length, int64Value));
// Serialize meta data.
nsCString name;
name.AssignLiteral("TIMESTAMP");
nsresult rv = meta->GetTimeStamp(&int64Value);
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
InfallibleTArray<RtspMetadataParam> metaData;
metaData.AppendElement(RtspMetadataParam(name, int64Value));