diff options
author | bigbear <ns@bigbear.dk> | 2024-02-08 02:55:50 +0100 |
---|---|---|
committer | bigbear <ns@bigbear.dk> | 2024-02-08 19:52:53 +0100 |
commit | 3c387015ab71e9a0f4ec375e194a499019272c60 (patch) | |
tree | 85c59f20fb82d21d5f732137f16194383a364e69 /deps/sysobj_early/src/util_ids.c | |
parent | 3d25cd5ae8241b687b970f8c1861451636a8f6ea (diff) |
FIX GCC Compatibility
Diffstat (limited to 'deps/sysobj_early/src/util_ids.c')
-rw-r--r-- | deps/sysobj_early/src/util_ids.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |