[winpr] add WINPR_C_ARRAY_INIT

since C23 allows c++ style initializing replace direct use with this
macro
This commit is contained in:
Armin Novak
2026-02-24 20:18:25 +01:00
parent a5609b929e
commit 48267edf2f
434 changed files with 2204 additions and 2195 deletions

View File

@@ -322,7 +322,7 @@ static int bitmap_cache_save_persistent(rdpBitmapCache* bitmapCache)
BITMAP_V2_CELL* cell = &bitmapCache->cells[i];
for (UINT32 j = 0; j < cell->number + 1 && cell->entries; j++)
{
PERSISTENT_CACHE_ENTRY cacheEntry = { 0 };
PERSISTENT_CACHE_ENTRY cacheEntry = WINPR_C_ARRAY_INIT;
rdpBitmap* bitmap = cell->entries[j];
if (!bitmap || !bitmap->key64)