diff --git a/toolkit/components/downloads/src/nsDownloadManager.cpp b/toolkit/components/downloads/src/nsDownloadManager.cpp index 6d93a6500cb..19e655995fe 100644 --- a/toolkit/components/downloads/src/nsDownloadManager.cpp +++ b/toolkit/components/downloads/src/nsDownloadManager.cpp @@ -1413,6 +1413,7 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress, LPSHELLFOLDER lpShellFolder = NULL; if (SUCCEEDED(::SHGetDesktopFolder(&lpShellFolder))) { + nsresult rv; nsCOMPtr fileURL = do_QueryInterface(mTarget, &rv); NS_ENSURE_SUCCESS(rv, rv);