From c6ecaf01c23a319a5a03cdb9210f88dcac892cf3 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 9 Dec 2024 22:18:42 -0300 Subject: [PATCH] cogl/sampler-cache: Initialize variable It's apparently harmless. Coverity CID: #1511379 Part-of: --- cogl/cogl/cogl-sampler-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl/cogl-sampler-cache.c b/cogl/cogl/cogl-sampler-cache.c index 9ce249e7f..cadf18a47 100644 --- a/cogl/cogl/cogl-sampler-cache.c +++ b/cogl/cogl/cogl-sampler-cache.c @@ -222,7 +222,7 @@ _cogl_sampler_cache_get_entry_cogl (CoglSamplerCache *cache, const CoglSamplerCacheEntry * _cogl_sampler_cache_get_default_entry (CoglSamplerCache *cache) { - CoglSamplerCacheEntry key; + CoglSamplerCacheEntry key = { 0, }; key.wrap_mode_s = COGL_SAMPLER_CACHE_WRAP_MODE_AUTOMATIC; key.wrap_mode_t = COGL_SAMPLER_CACHE_WRAP_MODE_AUTOMATIC;