diff options
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; |