diff --git a/modules/plugin/base/src/nsNPAPIPlugin.cpp b/modules/plugin/base/src/nsNPAPIPlugin.cpp index 08d124e6016e..6f0eaa8a0fa6 100644 --- a/modules/plugin/base/src/nsNPAPIPlugin.cpp +++ b/modules/plugin/base/src/nsNPAPIPlugin.cpp @@ -2432,9 +2432,9 @@ _getvalueforurl(NPP instance, NPNURLVariable variable, const char *url, } nsXPIDLCString cookieStr; - if (NS_FAILED(cookieService->GetCookieString(uri, nsnull, - getter_Copies(cookieStr))) || - !cookieStr) { + nsresult cookieReturn = cookieService->GetCookieString(uri, nsnull, + getter_Copies(cookieStr)); + if (NS_FAILED(cookieReturn) || !cookieStr) { return NPERR_GENERIC_ERROR; }