Skip to content

Commit

Permalink
Bug 1329570 - Restore missing error check in mozilla::dom::Location::…
Browse files Browse the repository at this point in the history
…GetPathname

native in moebius
  • Loading branch information
janekptacijarabaci committed Apr 22, 2018
1 parent 95c4608 commit 8af1b0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dom/base/Location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,10 @@ Location::GetPathname(nsAString& aPathname)
aPathname.Truncate();

nsCOMPtr<nsIURI> uri;
nsresult result = NS_OK;

result = GetURI(getter_AddRefs(uri));
nsresult result = GetURI(getter_AddRefs(uri));
if (NS_FAILED(result) || !uri) {
return result;
}

nsCOMPtr<nsIURIWithQuery> url(do_QueryInterface(uri));
if (url) {
Expand Down

0 comments on commit 8af1b0c

Please sign in to comment.