From 33140a9b1b422e9302243ba07037e4dab1d8e6d1 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 17 Jan 2025 15:49:23 +0100 Subject: [PATCH] Issue #2678 - Default NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED to NS_ERROR_FAILURE --- xpcom/glue/nsCycleCollectionParticipant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/glue/nsCycleCollectionParticipant.h b/xpcom/glue/nsCycleCollectionParticipant.h index 0959a4a648..a25c371bb5 100644 --- a/xpcom/glue/nsCycleCollectionParticipant.h +++ b/xpcom/glue/nsCycleCollectionParticipant.h @@ -338,7 +338,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsXPCOMCycleCollectionParticipant, return NS_OK; \ } \ } \ - nsresult rv; + nsresult rv = NS_ERROR_FAILURE; #define NS_CYCLE_COLLECTION_UPCAST(obj, clazz) \ NS_CYCLE_COLLECTION_CLASSNAME(clazz)::Upcast(obj)