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

@@ -104,7 +104,7 @@ device_added(struct udev_device *udev_device)
const char *subsys = NULL;
#endif
InputOption *input_options;
InputAttributes attrs = { };
InputAttributes attrs = { 0 };
DeviceIntPtr dev = NULL;
struct udev_list_entry *set, *entry;
struct udev_device *parent;

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;

View File

@@ -239,7 +239,7 @@ dix_check_grab_values(void)
static void
dix_event_to_core(int type)
{
DeviceEvent ev = {};
DeviceEvent ev = { 0 };
xEvent *core;
int time;
int x, y;