mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr] add WINPR_C_ARRAY_INIT
since C23 allows c++ style initializing replace direct use with this macro
This commit is contained in:
2
libfreerdp/cache/bitmap.c
vendored
2
libfreerdp/cache/bitmap.c
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user