Bug 788729: Check rv of nsDirectoryService::Create, to fix GCC build warning. r=bsmedberg

This commit is contained in:
Daniel Holbert 2012-09-09 16:31:12 -07:00
parent f8dfa24152
commit c16fc93e75

View File

@ -74,6 +74,8 @@ nsDirectoryService::GetCurrentProcessDirectory(nsIFile** aFile)
rv = nsDirectoryService::Create(nullptr,
NS_GET_IID(nsIProperties),
getter_AddRefs(dirService)); // needs to be around for life of product
if (NS_FAILED(rv))
return rv;
if (dirService)
{