From 3c387015ab71e9a0f4ec375e194a499019272c60 Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 02:55:50 +0100 Subject: FIX GCC Compatibility --- deps/sysobj_early/src/util_ids.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'deps/sysobj_early/src/util_ids.c') diff --git a/deps/sysobj_early/src/util_ids.c b/deps/sysobj_early/src/util_ids.c index b24dba59..197b1ed3 100644 --- a/deps/sysobj_early/src/util_ids.c +++ b/deps/sysobj_early/src/util_ids.c @@ -91,7 +91,7 @@ static void ids_query_result_set_str(ids_query_result *ret, int tabs, gchar *p) long scan_ids_file(const gchar *file, const gchar *qpath, ids_query_result *result, long start_offset) { gchar **qparts = NULL; gchar buff[IDS_LOOKUP_BUFF_SIZE] = ""; - ids_query_result ret = {}; + ids_query_result ret;// = {}; gchar *p = NULL; FILE *fd; @@ -100,6 +100,8 @@ long scan_ids_file(const gchar *file, const gchar *qpath, ids_query_result *resu int qpartlen[IDS_LOOKUP_MAX_DEPTH]; long last_root_fpos = -1, fpos, line = -1; + memset(&ret,0,sizeof(ids_query_result)); + if (!qpath) return -1; -- cgit v1.2.3