treewide: clean up static zero initialization

Do it the ISO C way.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-29 14:50:56 +02:00
committed by Enrico Weigelt
parent 331510cc8f
commit 5ea2496d20
3 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ typedef struct GlxVendorPrivDispatchRec {
HashTable hh;
} GlxVendorPrivDispatch;
static GlxServerDispatchProc dispatchFuncs[OPCODE_ARRAY_LEN] = {};
static GlxServerDispatchProc dispatchFuncs[OPCODE_ARRAY_LEN] = { 0 };
static HashTable vendorPrivHash = NULL;
static HtGenericHashSetupRec vendorPrivSetup = {
.keySize = sizeof(CARD32)
@@ -192,7 +192,7 @@ static int CommonMakeCurrent(ClientPtr client,
GLXDrawable readdrawable,
GLXContextID context)
{
xGLXMakeCurrentReply reply = {};
xGLXMakeCurrentReply reply = { 0 };
GlxContextTagInfo *oldTag = NULL;
GlxServerVendor *newVendor = NULL;