From 3c387015ab71e9a0f4ec375e194a499019272c60 Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 02:55:50 +0100 Subject: FIX GCC Compatibility --- modules/devices/monitors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/devices/monitors.c b/modules/devices/monitors.c index 38f3c9e6..02fb1d67 100644 --- a/modules/devices/monitors.c +++ b/modules/devices/monitors.c @@ -111,8 +111,9 @@ gchar *monitor_vendor_str(monitor *m, gboolean include_value, gboolean link_name if (!m || !m->e) return NULL; edid_ven ven = m->e->ven; gchar v[20] = "", t[4] = ""; - ids_query_result result = {}; + ids_query_result result;// = {}; + memset(&result,0,sizeof(ids_query_result)); if (ven.type == VEN_TYPE_PNP) { strcpy(v, ven.pnp); strcpy(t, "PNP"); -- cgit v1.2.3